java.lang.Object
io.jenetics.internal.util.Lazy<T>
- All Implemented Interfaces:
Serializable,Supplier<T>
Class for lazy value initialization.
- Since:
- 3.0
- Version:
- 5.0
- See Also:
-
Method Details
-
get
-
isEvaluated
Return the evaluation state of theLazyvariable.- Returns:
trueis theLazyvariable has been evaluated,falseotherwise
-
hashCode
-
equals
-
toString
-
of
Create a new lazy value initialization.- Type Parameters:
T- the value type- Parameters:
supplier- the lazy value supplier- Returns:
- a new lazy value initialization
- Throws:
NullPointerException- if the given supplier isnull
-
ofValue
Create a newLazyobject with the givenvalue. This method allows to create a lazy object with the givenvalue.- Type Parameters:
T- the value type- Parameters:
value- the value thisLazyobject is initialized with- Returns:
- return a new lazy value with the given value
- Since:
- 3.7
-