Package edu.hm.hafner.util
Class Deferred<T>
- java.lang.Object
-
- edu.hm.hafner.util.Deferred<T>
-
- Type Parameters:
T- type of the instance
public final class Deferred<T> extends Object
Deferred element wrapper of a singleton instance. Creates a constant instance when it is accessed the first time.
-
-
Method Detail
-
get
public T get()
Returns the instance. If not yet created the instance will be created.- Returns:
- the instance
-
-