public final class Stop extends Object
| Constructor and Description |
|---|
Stop(List raw)
Construct Stop object from raw list of attributes parsed from JSON.
|
Stop(String id,
String name,
String indicator,
Integer state,
Double latitude,
Double longitude)
Construct Stop object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
getIndicator() |
Double |
getLatitude() |
Double |
getLongitude() |
String |
getName() |
Integer |
getState() |
static IOException |
typeError(int field,
Class actual,
String expected)
Generate exception for unmatched type.
|
static IOException |
typeErrorString(int field,
Class actual)
Generate exception for unmatched type when String is expected.
|
public Stop(String id, String name, String indicator, Integer state, Double latitude, Double longitude)
id - Stop ID.name - Stop name.indicator - Stop indicator.state - Stop state.latitude - Stop geolocation latitude.longitude - Stop geolocation longitude.public Stop(List raw) throws IOException
raw - List of attributes from JSON lineIOException - Thrown on invalid line format.public String getId()
public String getName()
public String getIndicator()
public Integer getState()
public Double getLatitude()
public Double getLongitude()
public static IOException typeErrorString(int field, Class actual)
field - Field number.actual - Actual class.public static IOException typeError(int field, Class actual, String expected)
field - Field number.actual - Actual class.expected - Expected type.Copyright © 2016–2018. All rights reserved.