Interface Fragile<T,​E extends java.lang.Exception>

  • All Known Subinterfaces:
    Single<T>
    All Known Implementing Classes:
    Backed, Broken, Collected, DelegatingFragile, DelegatingSingle, Digest, Frozen, Hex, Just, Mapped, NonNull, Reduced, Unchecked, Zipped
    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 Fragile<T,​E extends java.lang.Exception>
    A 1-tuple that may throw an Exception during retrieval of the value.

    Fragiles are immutable and return an equal (also immutable) value for every invocation.

    See Also:
    Single
    • Method Detail

      • value

        T value()
         throws E extends java.lang.Exception
        Retrieve the value.
        Throws:
        E extends java.lang.Exception