Interface Tuple

All Superinterfaces:
Comparable<Tuple>
All Known Implementing Classes:
Tuple0, Tuple1, Tuple2, Tuple3, Tuple4, TupleN

public sealed interface Tuple extends Comparable<Tuple> permits Tuple0, Tuple1, Tuple2, Tuple3, Tuple4, TupleN
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    compareTo(@NotNull Tuple other)
     
    int
    get(int element)
     
    int
     
    static Tuple0
    of()
     
    static Tuple1
    of(int value)
     
    static Tuple
    of(int... values)
     
    static Tuple2
    of(int value1, int value2)
     
    static Tuple3
    of(int value1, int value2, int value3)
     
    static Tuple4
    of(int value1, int value2, int value3, int value4)
     
    set(int element, int value)
     
  • Method Details

    • getSize

      int getSize()
    • get

      int get(int element)
    • set

      Tuple set(int element, int value)
    • compareTo

      default int compareTo(@NotNull @NotNull Tuple other)
      Specified by:
      compareTo in interface Comparable<Tuple>
    • of

      static Tuple0 of()
    • of

      static Tuple1 of(int value)
    • of

      static Tuple2 of(int value1, int value2)
    • of

      static Tuple3 of(int value1, int value2, int value3)
    • of

      static Tuple4 of(int value1, int value2, int value3, int value4)
    • of

      static Tuple of(int... values)