Module OneMTA

Interface Reference.Vehicle<V extends TransitVehicle<?,?,?,?,?,?>>

Type Parameters:
V - transit vehicle type
All Known Implementing Classes:
Bus.Route, Bus.Stop, LIRR.Route, LIRR.Stop, MNR.Route, MNR.Stop, Subway.Route, Subway.Stop, TransitRoute, TransitStop
Enclosing class:
Reference

public static interface Reference.Vehicle<V extends TransitVehicle<?,?,?,?,?,?>>
Indicates that there is a vehicle reference.
Since:
2.0.0
Version:
2.0.0
Author:
Katsute
  • Method Summary

    Modifier and Type
    Method
    Description
    V[]
    Returns vehicles.
  • Method Details

    • getVehicles

      V[] getVehicles()
      Returns vehicles. For subway routes this will return both local and express trains; use Subway.Vehicle.isExpress() to check which trains are express.
      Returns:
      vehicles
      Since:
      1.0.0