Package org.primefaces.util
Class Lazy<T>
- java.lang.Object
-
- org.primefaces.util.Lazy<T>
-
- Type Parameters:
T
- The type to be lazy initialized.
- All Implemented Interfaces:
Serializable
public class Lazy<T> extends Object implements Serializable
Inspired by commons-lang LazyInitializer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Lazy(SerializableSupplier<T> init)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
boolean
isInitialized()
void
reset(SerializableSupplier<T> init)
void
reset(T value)
-
-
-
Constructor Detail
-
Lazy
public Lazy(SerializableSupplier<T> init)
-
-
Method Detail
-
reset
public void reset(SerializableSupplier<T> init)
-
reset
public void reset(T value)
-
get
public T get()
-
isInitialized
public boolean isInitialized()
-
-