public class PointOfInterest extends Location<PointOfInterest>
In its minimal form it does not contain any additional attributes, but just
the information that this Location is a point of interest.
| Constructor and Description |
|---|
PointOfInterest() |
| Modifier and Type | Method and Description |
|---|---|
static PointOfInterest |
createMinimal(GeoJSONCoordinate position) |
boolean |
equals(Object obj) |
Optional<String> |
getName() |
Optional<String> |
getPoiType() |
int |
hashCode() |
PointOfInterest |
setName(String name) |
PointOfInterest |
setPoiType(String poiType) |
String |
toString() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
getAdditionalInfo, getAddress, getComplexGeometry, getCoordinate, getSimpleCoordinate, setAdditionalInfo, setAddress, setComplexGeometry, setCoordinate, setCoordinatepublic PointOfInterest setPoiType(String poiType)
public PointOfInterest setName(String name)
public static PointOfInterest createMinimal(GeoJSONCoordinate position)
public void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablevalidate in class Location<PointOfInterest>public int hashCode()
hashCode in class Location<PointOfInterest>public boolean equals(Object obj)
equals in class Location<PointOfInterest>public String toString()
toString in class Location<PointOfInterest>Copyright © 2018. All rights reserved.