Module OneMTA

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 format
V - transit vehicle type
A - 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 Details

    • TransitStop

      public TransitStop()
  • Method Details

    • getStopID

      public abstract SID getStopID()
      Returns the stop ID.
      Returns:
      stop ID
      Since:
      1.0.0
    • getStopName

      public abstract String getStopName()
      Returns the stop name.
      Returns:
      stop name
      Since:
      1.0.0
    • isExactStop

      public abstract boolean isExactStop(Object object)
      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

      public abstract boolean isSameStop(Object object)
      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: