Class NonNull<T,​E extends java.lang.Exception>

  • All Implemented Interfaces:
    Fragile<T,​E>

    public final class NonNull<T,​E extends java.lang.Exception>
    extends java.lang.Object
    implements Fragile<T,​E>
    A Fragile that fails when the given value was null.
    • Constructor Summary

      Constructors 
      Constructor Description
      NonNull​(T value, Generator<? extends E> exceptionGenerator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T value()
      Retrieve the value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonNull

        public NonNull​(T value,
                       Generator<? extends E> exceptionGenerator)
    • Method Detail

      • value

        public T value()
                throws E extends java.lang.Exception
        Description copied from interface: Fragile
        Retrieve the value.
        Specified by:
        value in interface Fragile<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception