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
- 
isEvaluatedReturn the evaluation state of theLazyvariable.- Returns:
- trueis the- Lazyvariable has been evaluated,- falseotherwise
 
- 
hashCode
- 
equals
- 
toString
- 
ofCreate 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 is- null
 
- 
ofValueCreate a newLazyobject with the givenvalue. This method allows creating a lazy object with the givenvalue.- Type Parameters:
- T- the value type
- Parameters:
- value- the value this- Lazyobject is initialized with
- Returns:
- return a new lazy value with the given value
- Since:
- 3.7
 
 
-