Interface ViewableAsTuple<T1,​T2>

  • Type Parameters:
    T1 - The type of the first value.
    T2 - The type of the second value.
    All Known Subinterfaces:
    Tuple<T1,​T2>
    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 ViewableAsTuple<T1,​T2>
    A type which may be viewed as a composite of two values, i.e. a Tuple.
    • Method Detail

      • asTuple

        Tuple<T1,​T2> asTuple()
        Returns:
        The Tuple view of this object.