Package com.io7m.cedarbridge.runtime.api
Record Class CBNone<T extends CBSerializableType>
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.runtime.api.CBNone<T>
- Type Parameters:
T- The type of values
- All Implemented Interfaces:
CBOptionType<T>,CBSerializableType,Formattable
The None case.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CBNone
public CBNone()Creates an instance of aCBNonerecord class.
-
-
Method Details
-
formatTo
- Specified by:
formatToin interfaceFormattable
-
asOptional
- Specified by:
asOptionalin interfaceCBOptionType<T extends CBSerializableType>- Returns:
- This value as a Java Optional
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-