Class Values.ExceptionValue<T,E extends Throwable>

java.lang.Object
org.glassfish.jersey.internal.util.collection.Values.ExceptionValue<T,E>
All Implemented Interfaces:
UnsafeValue<T,E>
Enclosing class:
Values

private static class Values.ExceptionValue<T,E extends Throwable> extends Object implements UnsafeValue<T,E>
  • Field Details

    • throwable

      private final E extends Throwable throwable
  • Constructor Details

    • ExceptionValue

      public ExceptionValue(E throwable)
  • 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.
    • 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