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
  • 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.