Class Point

  • Direct Known Subclasses:
    Link

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

      • Point

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

      • 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.