Class Values.LazyUnsafeValueImpl<T,E extends Throwable>
java.lang.Object
org.glassfish.jersey.internal.util.collection.Values.LazyUnsafeValueImpl<T,E>
- All Implemented Interfaces:
LazyUnsafeValue<T,,E> UnsafeValue<T,E>
- Enclosing class:
Values
private static class Values.LazyUnsafeValueImpl<T,E extends Throwable>
extends Object
implements LazyUnsafeValue<T,E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnsafeValue<T, E> private final Objectprivate UnsafeValue<T, E> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lock
-
delegate
-
value
-
-
Constructor Details
-
LazyUnsafeValueImpl
-
-
Method Details
-
get
Description copied from interface:UnsafeValueGet the stored value.- Specified by:
getin interfaceUnsafeValue<T,E extends Throwable> - Returns:
- stored value.
- Throws:
E
-
isInitialized
public boolean isInitialized()Description copied from interface:LazyUnsafeValueCheck if the lazy value has been initialized already (i.e. itsUnsafeValue.get()method has already been called previously) or not.- Specified by:
isInitializedin interfaceLazyUnsafeValue<T,E extends Throwable> - Returns:
trueif the lazy value has already been initialized,falseotherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-