T - The type of object to createpublic interface CreateAndHold<T>
A class that implements this interface guarantees to create an object and hold it.
Implementations may have different levels of thread-safety, or levels of synchronization between threads
| Modifier and Type | Method and Description |
|---|---|
T |
getObject()
Returns the object, creating it first if necessary.
|
boolean |
isCreated()
Check if object of type T is created
|
boolean isCreated()
Check if object of type T is created
T getObject()
Returns the object, creating it first if necessary.