Interface Single<T>

  • All Superinterfaces:
    Fragile<T,​java.lang.RuntimeException>
    All Known Implementing Classes:
    Backed, Collected, DelegatingSingle, Digest, Frozen, Hex, Just, Reduced, Unchecked
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Single<T>
    extends Fragile<T,​java.lang.RuntimeException>
    A 1-tuple.

    A Single is a tuple with exactly one value.

    • Method Detail

      • value

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