org.glassfish.jersey.internal.util.collection
Interface UnsafeValue<T,E extends Throwable>

Type Parameters:
T - value type.
E - exception type.
All Known Subinterfaces:
LazyUnsafeValue<T,E>

public interface UnsafeValue<T,E extends Throwable>

A generic value provider, similar to Value, but able to throw an exception.

Author:
Marek Potociar (marek.potociar at oracle.com)

Method Summary
 T get()
          Get the stored value.
 

Method Detail

get

T get()
      throws E extends Throwable
Get the stored value.

Returns:
stored value.
Throws:
E - in case there was an error while computing the value.
E extends Throwable


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.