Interface UnsafeValue<T,E extends Throwable>

Type Parameters:
T - value type.
E - exception type.
All Known Subinterfaces:
LazyUnsafeValue<T,E>
All Known Implementing Classes:
Values.ExceptionValue, Values.InstanceUnsafeValue, Values.LazyUnsafeValueImpl

public interface UnsafeValue<T,E extends Throwable>
A generic value provider, similar to Value, but able to throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get the stored value.
  • Method Details

    • get

      T get() throws E
      Get the stored value.
      Returns:
      stored value.
      Throws:
      E - in case there was an error while computing the value.