Interface LazyUnsafeValue<T,E extends java.lang.Throwable>
-
- All Superinterfaces:
UnsafeValue<T,E>
- All Known Implementing Classes:
Values.LazyUnsafeValueImpl
public interface LazyUnsafeValue<T,E extends java.lang.Throwable> extends UnsafeValue<T,E>
Lazily initializedunsafe value
.Instances of this interface are initialized lazily during the first call to their
value retrieval method
. Information about the initialization state of aLazyUnsafeValue
instance is available viaisInitialized()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isInitialized()
Check if the lazy value has been initialized already (i.e.-
Methods inherited from interface org.glassfish.jersey.internal.util.collection.UnsafeValue
get
-
-
-
-
Method Detail
-
isInitialized
boolean isInitialized()
Check if the lazy value has been initialized already (i.e. itsUnsafeValue.get()
method has already been called previously) or not.- Returns:
true
if the lazy value has already been initialized,false
otherwise.
-
-