Class Tuple<A,B>

java.lang.Object
com.minecolonies.api.util.Tuple<A,B>
Type Parameters:
A - The first obj.
B - The second obj.

public class Tuple<A,B> extends Object
Our own tuple implementation with hashcode and equals.
  • Constructor Details

    • Tuple

      public Tuple(@Nullable A aIn, @Nullable B bIn)
  • Method Details

    • getA

      @Nullable public A getA()
    • getB

      @Nullable public B getB()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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