Class DelegatingSingle<T>

  • All Implemented Interfaces:
    Fragile<T,​java.lang.RuntimeException>, Single<T>
    Direct Known Subclasses:
    Collected

    public abstract class DelegatingSingle<T>
    extends java.lang.Object
    implements Single<T>
    A Single which delegates all calls to another Single.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DelegatingSingle​(Fragile<T,​? extends java.lang.RuntimeException> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • DelegatingSingle

        protected DelegatingSingle​(Fragile<T,​? extends java.lang.RuntimeException> delegate)
    • Method Detail

      • value

        public final 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 Single<T>