类 Tuple2<R1,R2>

java.lang.Object
com.alibaba.csp.sentinel.util.function.Tuple2<R1,R2>

public class Tuple2<R1,R2> extends Object
A tuple of 2 elements.
  • 字段详细资料

    • r1

      public final R1 r1
    • r2

      public final R2 r2
  • 构造器详细资料

    • Tuple2

      public Tuple2(R1 r1, R2 r2)
  • 方法详细资料

    • of

      public static <C1, C2> Tuple2<C1,C2> of(C1 c1, C2 c2)
      Factory method for creating a Tuple.
      返回:
      new Tuple
    • swap

      public Tuple2<R2,R1> swap()
      Swaps the element of this Tuple.
      返回:
      a new Tuple where the first element is the second element of this Tuple and the second element is the first element of this Tuple.
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object