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 Details

  • Constructor Details

    • LazyUnsafeValueImpl

      public LazyUnsafeValueImpl(UnsafeValue<T,E> delegate)
  • Method Details

    • get

      public T get() throws E
      Description copied from interface: UnsafeValue
      Get the stored value.
      Specified by:
      get in interface UnsafeValue<T,E extends Throwable>
      Returns:
      stored value.
      Throws:
      E - in case there was an error while computing the value.
    • isInitialized

      public boolean isInitialized()
      Description copied from interface: LazyUnsafeValue
      Check if the lazy value has been initialized already (i.e. its UnsafeValue.get() method has already been called previously) or not.
      Specified by:
      isInitialized in interface LazyUnsafeValue<T,E extends Throwable>
      Returns:
      true if the lazy value has already been initialized, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object