Module OneMTA
Package dev.katsute.onemta.types
Class TransitStop<SID,V extends TransitVehicle<?,?,?,?,?,?>,A extends TransitAlert<?,?,?,?>>
java.lang.Object
dev.katsute.onemta.types.TransitStop<SID,V,A>
- Type Parameters:
SID
- stop ID formatV
- transit vehicle typeA
- transit alert type
- All Implemented Interfaces:
Alerts<A>
,Location
,Reference.Vehicle<V>
,Updatable
- Direct Known Subclasses:
Bus.Stop
,LIRR.Stop
,MNR.Stop
,Subway.Stop
public abstract class TransitStop<SID,V extends TransitVehicle<?,?,?,?,?,?>,A extends TransitAlert<?,?,?,?>>
extends Object
implements Alerts<A>, Location, Reference.Vehicle<V>, Updatable
Represents a transit stop.
- Since:
- 1.0.0
- Version:
- 1.1.0
- Author:
- Katsute
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract SID
Returns the stop ID.abstract String
Returns the stop name.abstract boolean
isExactStop
(Object object) Returns if the stop has the exact same stop ID.abstract boolean
isSameStop
(Object object) Returns if the stop is the same stop.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.katsute.onemta.attribute.Location
getLatitude, getLongitude
Methods inherited from interface dev.katsute.onemta.attribute.Reference.Vehicle
getVehicles
-
Constructor Details
-
TransitStop
public TransitStop()
-
-
Method Details
-
getStopID
Returns the stop ID.- Returns:
- stop ID
- Since:
- 1.0.0
-
getStopName
Returns the stop name.- Returns:
- stop name
- Since:
- 1.0.0
-
isExactStop
Returns if the stop has the exact same stop ID. Includes stop direction.- Parameters:
object
- stop, stop ID, or stop code- Returns:
- if stop ID matches
- Since:
- 1.1.0
- See Also:
-
isSameStop
Returns if the stop is the same stop. Ignores stop direction.- Parameters:
object
- stop, stop ID, or stop code- Returns:
- if stop is referring to the same stop
- Since:
- 1.1.0
- See Also:
-