Class Pair<X,Y>

java.lang.Object
pvzclone.model.impl.Pair<X,Y>
Type Parameters:
X - first element type.
Y - second element type.

public final class Pair<X,Y> extends Object
A standard generic Pair<X,Y>. It comprehends getters, hashCode, equals, and toString.
  • Constructor Details

    • Pair

      public Pair(X x, Y y)
      Pair Constructor.
      Parameters:
      x - first element.
      y - second element.
  • Method Details

    • getX

      public X getX()
      Returns the first element of the Pair Object.
      Returns:
      first element of pair.
    • getY

      public Y getY()
      Returns the second element of the Pair Object.
      Returns:
      second element of pair.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object