public class PhysicalLocation
A labelled class WorldCoordinate
, where the label is human meaningful. For example, the name of the nearest city.
Labels should not refer to non-landmarks, for example, they should not contain the names of organisations.
class WorldCoordinate
Constructor and Description |
---|
PhysicalLocation(WorldCoordinate coordinate,
java.lang.String description)
A labelled
class WorldCoordinate , where the label is human meaningful. For example, the name of the nearest city.
Labels should not refer to non-landmarks, for example, they should not contain the names of organisations. |
Modifier and Type | Method and Description |
---|---|
WorldCoordinate |
component1() |
java.lang.String |
component2() |
PhysicalLocation |
copy(WorldCoordinate coordinate,
java.lang.String description)
A labelled
class WorldCoordinate , where the label is human meaningful. For example, the name of the nearest city.
Labels should not refer to non-landmarks, for example, they should not contain the names of organisations. |
boolean |
equals(java.lang.Object p) |
WorldCoordinate |
getCoordinate() |
java.lang.String |
getDescription() |
int |
hashCode() |
java.lang.String |
toString() |
public PhysicalLocation(WorldCoordinate coordinate, java.lang.String description)
A labelled class WorldCoordinate
, where the label is human meaningful. For example, the name of the nearest city.
Labels should not refer to non-landmarks, for example, they should not contain the names of organisations.
class WorldCoordinate
public WorldCoordinate getCoordinate()
public java.lang.String getDescription()
public WorldCoordinate component1()
public java.lang.String component2()
public PhysicalLocation copy(WorldCoordinate coordinate, java.lang.String description)
A labelled class WorldCoordinate
, where the label is human meaningful. For example, the name of the nearest city.
Labels should not refer to non-landmarks, for example, they should not contain the names of organisations.
class WorldCoordinate
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)