public class Location extends Value<Rectangle,Location>
Constructor and Description |
---|
Location(Rectangle rectangle,
int x,
int y)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compare two coordinates.
|
String |
getName()
Location's name.
|
int |
getX()
Gets x coordinate
|
int |
getY()
Gets y coordinate
|
boolean |
hasIntersection(Location anotherLocation)
Returns true if the given location intersects with this location
|
String |
toString()
String representation (for debugging and printing purposes).
|
assigned, compareTo, conflicts, countAssignments, getDescription, getExtra, getId, hashCode, isConsistent, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, toDouble, unassigned, valueEquals, variable
public int getX()
public int getY()
public boolean equals(Object object)
public String toString()
public boolean hasIntersection(Location anotherLocation)