Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/backend/Stop.java
Show All 40 Lines | public class Stop implements Comparable<Stop> { | ||||
private @Nullable List<String> routesThatStopHere; | private @Nullable List<String> routesThatStopHere; | ||||
private final @Nullable Double lat; | private final @Nullable Double lat; | ||||
private final @Nullable Double lon; | private final @Nullable Double lon; | ||||
// leave this non-final | // leave this non-final | ||||
private @Nullable String routesThatStopHereString = null; | private @Nullable String routesThatStopHereString = null; | ||||
private @Nullable String absurdGTTPlaceName = null; | private @Nullable String absurdGTTPlaceName = null; | ||||
// | |||||
public @Nullable String gtfsID = null; | |||||
/** | /** | ||||
* Hey, look, method overloading! | * Hey, look, method overloading! | ||||
*/ | */ | ||||
public Stop(final @Nullable String name, final @NonNull String ID, @Nullable final String location, @Nullable final Route.Type type, @Nullable final List<String> routesThatStopHere) { | public Stop(final @Nullable String name, final @NonNull String ID, @Nullable final String location, @Nullable final Route.Type type, @Nullable final List<String> routesThatStopHere) { | ||||
this.ID = ID; | this.ID = ID; | ||||
this.name = name; | this.name = name; | ||||
this.username = null; | this.username = null; | ||||
this.location = (location != null && location.length() == 0) ? null : location; | this.location = (location != null && location.length() == 0) ? null : location; | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register