Top Description Methods
org.glassfish.tyrus.core.collection

public Interface LazyValue<T>

extends Value<T>
Known Direct Implementers
org.glassfish.tyrus.core.collection.Values.LazyValueImpl

Lazily initialized value.

Instances of this interface are initialized lazily during the first call to their value retrieval method. Information about the initialization state of a LazyValue instance is available via isInitialized() method.

Author
Marek Potociar

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the lazy value has already been initialized, false otherwise.
isInitialized
()

Check if the lazy value has been initialized already (i.e. its get() method has already been called previously) or not.

Inherited from org.glassfish.tyrus.core.collection.Value:
get

Method Detail

isInitializedback to summary
public boolean isInitialized()

Check if the lazy value has been initialized already (i.e. its get() method has already been called previously) or not.

Returns:boolean

true if the lazy value has already been initialized, false otherwise.