Package com.facilita.fc.eggPlant
Class Point
- java.lang.Object
-
- com.facilita.fc.eggPlant.Point
-
public class Point extends java.lang.ObjectRepresents a Point on the screen.
-
-
Constructor Summary
Constructors Constructor Description Point(int x, int y)Instantiates a new point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()intx()get the x coordinate.inty()get the y coordinate.
-
-
-
Method Detail
-
x
public int x()
get the x coordinate.- Returns:
- the x coordinate
-
y
public int y()
get the y coordinate.- Returns:
- the int
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-