Class Point

java.lang.Object
ubic.basecode.dataStructure.Point
Direct Known Subclasses:
Link

public class Point extends Object
Author:
Paul Pavlidis
  • Constructor Details

    • Point

      public Point(int i, int j)
      Parameters:
      i -
      j -
  • Method Details

    • equals

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

      public int[] get()
      Returns:
      array containing the coordinates x,y.
    • getx

      public int getx()
      Returns:
      x the x value.
    • gety

      public int gety()
      Returns:
      y the y value.
    • hashCode

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

      public void set(int i, int j)
      Parameters:
      i -
      j -
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string representation of the point.