|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractDirectPosition
public abstract class AbstractDirectPosition
Base class for direct position implementations. This base class
provides default implementations for toString(), equals(java.lang.Object) and hashCode()
methods.
This class do not holds any state. The decision to implement Serializable
or org.geotools.util.Cloneable interfaces is left to implementors.
| Constructor Summary | |
|---|---|
protected |
AbstractDirectPosition()
Constructs a direct position. |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true if the specified object is also a direct position with equals coordinate and
CRS. |
double[] |
getCoordinate()
Returns a sequence of numbers that hold the coordinate of this position in its reference system. |
DirectPosition |
getDirectPosition()
Returns always this, the direct position for this
position. |
int |
hashCode()
Returns a hash value for this coordinate. |
void |
setPosition(DirectPosition position)
Sets this direct position to the given position. |
String |
toString()
Returns a string representation of this coordinate. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface DirectPosition |
|---|
getCoordinateReferenceSystem, getDimension, getOrdinate, setOrdinate |
| Constructor Detail |
|---|
protected AbstractDirectPosition()
| Method Detail |
|---|
public DirectPosition getDirectPosition()
this, the direct position for this
position.
getDirectPosition in interface Positionthis).public void setPosition(DirectPosition position)
null, then all ordinate values are set to NaN.
position - The new position.public double[] getCoordinate()
getCoordinate in interface DirectPositionpublic String toString()
CoordinateFormat.
toString in class Objectpublic int hashCode()
hashCode in interface DirectPositionhashCode in class Objectpublic boolean equals(Object object)
true if the specified object is also a direct position with equals coordinate and
CRS.
equals in interface DirectPositionequals in class Objectobject - The object to compare with this position.
true if the given object is equals to this position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||