Record Class Option.None<Value>
java.lang.Object
java.lang.Record
codes.domix.fun.Option.None<Value>
- Type Parameters:
Value- The type of the value that would be held by anOption, if present.
- All Implemented Interfaces:
Option<Value>
Represents a variant of the
Option type that signifies the absence of a value.
This record is used to indicate and handle cases where an operation does not produce
a meaningful or valid result. It serves as an alternative to using null.
-
Constructor Details
-
None
public None()Creates an instance of aNonerecord class.
-
-
Method Details
-
toString
-
hashCode
-
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.
-