Class Backed<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      Backed​(Optional<? extends T> optional, Fragile<? extends T,​? extends java.lang.RuntimeException> backUp)  
      Backed​(Optional<? extends T> optional, T backUp)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isPresent()
      Returns whether the optional value is present.
      T value()
      Returns the sole value of this 1-tuple.
      • Methods inherited from class java.lang.Object

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

      • Backed

        public Backed​(Optional<? extends T> optional,
                      Fragile<? extends T,​? extends java.lang.RuntimeException> backUp)
      • Backed

        public Backed​(Optional<? extends T> optional,
                      T backUp)
    • Method Detail

      • isPresent

        public boolean isPresent()
        Description copied from interface: Optional
        Returns whether the optional value is present.
        Specified by:
        isPresent in interface Optional<T>
      • value

        public T value()
        Description copied from interface: Single
        Returns the sole value of this 1-tuple.
        Specified by:
        value in interface Fragile<T,​java.lang.RuntimeException>
        Specified by:
        value in interface Optional<T>
        Specified by:
        value in interface Single<T>