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 theLazy
variable.- Returns:
true
is theLazy
variable has been evaluated,false
otherwise
-
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 newLazy
object with the givenvalue
. This method allows creating a lazy object with the givenvalue
.- Type Parameters:
T
- the value type- Parameters:
value
- the value thisLazy
object is initialized with- Returns:
- return a new lazy value with the given value
- Since:
- 3.7
-