Class Just<T>

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

    public final class Just<T>
    extends java.lang.Object
    implements Single<T>
    The most simple Single there is. It takes a value and returns exactly the same value on request.
    • Constructor Summary

      Constructors 
      Constructor Description
      Just​(T value)  
    • 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

      • Just

        public Just​(T value)
    • Method Detail

      • 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 Single<T>