Package org.smallibs.data
Record Class Maybe.None<T>
java.lang.Object
java.lang.Record
org.smallibs.data.Maybe.None<T>
None implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.smallibs.data.Maybe
Maybe.None<T>, Maybe.Some<T> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
None
public None()Creates an instance of aNonerecord class.
-
-
Method Details
-
hasSome
public boolean hasSome() -
flatmap
-
onSome
-
onNone
-
orElse
-
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.
-