Class Pair<A,B>

java.lang.Object
com.kingsrook.qqq.backend.core.utils.Pair<A,B>
All Implemented Interfaces:
Cloneable

public class Pair<A,B> extends Object implements Cloneable
Simple container for two objects
  • Constructor Details

    • Pair

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

    • of

      public static <A, B> Pair<A,B> of(A a, B b)
      static constructor (factory)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getA

      public A getA()
      Getter for a
    • getB

      public B getB()
      Getter for b
    • equals

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

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

      public Pair<A,B> clone()
      Overrides:
      clone in class Object