public class CoordinateInfo extends Object implements Cloneable, Serializable
CoordinateInfo
class returns the location of a field, that is, the field's X and Y coordinates.Constructor and Description |
---|
CoordinateInfo() |
CoordinateInfo(int a,
int b)
construct a CoordinateInfo object with the provided x and y coordinate.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
int |
getXCoordinate()
Returns X coordinate.
|
int |
getYCoordinate()
Returns Y coordinate.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setXCoordinate(int x)
Sets X coordinate.
|
void |
setYCoordinate(int y)
Sets Y coordinate.
|
String |
toString()
Returns a string description of the object.
|
public CoordinateInfo()
public CoordinateInfo(int a, int b)
a
- b
- public int getXCoordinate()
public int getYCoordinate()
public void setXCoordinate(int x)
public void setYCoordinate(int y)
public String toString()
public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
? Copyright 2013 BMC Software, Inc.