Class Tuple<A,B>

java.lang.Object
io.github.tigerbotics7125.tigerlib.math.Tuple<A,B>

public class Tuple<A,B> extends Object
This class is a simple way of dealing with a pair of objects together, rather than using a List or Object[].
  • Constructor Details

    • Tuple

      public Tuple(A a, B b)
  • Method Details

    • of

      public static <A, B> Tuple<A,B> of(A a, B b)
    • getFirst

      public A getFirst()
    • getSecond

      public B getSecond()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object