public class SharingStation extends Location<SharingStation>
In its minimal form it does not contain any additional attributes, but just
the information that this Location is a sharing station.
| Constructor and Description |
|---|
SharingStation() |
| Modifier and Type | Method and Description |
|---|---|
static SharingStation |
createMinimal(GeoJSONCoordinate position) |
boolean |
equals(Object obj) |
Optional<String> |
getId() |
List<Constants.GeneralizedModeOfTransportType> |
getModesOfTransport() |
Optional<String> |
getName() |
Optional<Operator> |
getOperator() |
int |
hashCode() |
SharingStation |
setId(String id) |
SharingStation |
setModesOfTransport(List<Constants.GeneralizedModeOfTransportType> modesOfTransport) |
SharingStation |
setName(String name) |
SharingStation |
setOperator(Operator operator) |
String |
toString() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
getAdditionalInfo, getAddress, getComplexGeometry, getCoordinate, getSimpleCoordinate, setAdditionalInfo, setAddress, setComplexGeometry, setCoordinate, setCoordinatepublic Optional<String> getId()
public List<Constants.GeneralizedModeOfTransportType> getModesOfTransport()
public SharingStation setName(String name)
public SharingStation setId(String id)
public SharingStation setModesOfTransport(List<Constants.GeneralizedModeOfTransportType> modesOfTransport)
public SharingStation setOperator(Operator operator)
public static SharingStation createMinimal(GeoJSONCoordinate position)
public void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablevalidate in class Location<SharingStation>public int hashCode()
hashCode in class Location<SharingStation>public boolean equals(Object obj)
equals in class Location<SharingStation>public String toString()
toString in class Location<SharingStation>Copyright © 2018. All rights reserved.