Interface Tuple2<A,B>

All Superinterfaces:
Serializable
All Known Implementing Classes:
Tuple2.Tuple2Impl

public sealed interface Tuple2<A,B> extends Serializable permits Tuple2.Tuple2Impl<A,B>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    _1()
     
    _2()
     
    default <C> Tuple3<A,B,C>
    append(C c)
     
    default <RES> RES
    map(Fn2<A,B,RES> f)
     
    static <A, B> Tuple2<A,B>
    of(A a, B b)
     
  • Method Details

    • _1

      A _1()
    • _2

      B _2()
    • map

      default <RES> RES map(Fn2<A,B,RES> f)
    • append

      default <C> Tuple3<A,B,C> append(C c)
    • of

      static <A, B> Tuple2<A,B> of(A a, B b)