Class SparseGridIndex.Pair

java.lang.Object
net.mtrop.doom.struct.map.SparseGridIndex.Pair
Enclosing class:
SparseGridIndex<T>

public static class SparseGridIndex.Pair extends Object
Ordered Pair integer object.
  • Method Details

    • getX

      public int getX()
    • getY

      public int getY()
    • hashCode

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

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

      public boolean equals(SparseGridIndex.Pair p)
      Checks if this pair equals another.
      Parameters:
      p - the other pair.
      Returns:
      true if so, false if not.
    • toString

      public String toString()
      Overrides:
      toString in class Object