Module OneMTA
Package dev.katsute.onemta.types
Class TransitAlert<RID,R extends TransitRoute<?,?,?>,SID,S extends TransitStop<?,?,?>>
java.lang.Object
dev.katsute.onemta.types.TransitAlert<RID,R,SID,S>
- Type Parameters:
RID
- route ID formatR
- transit route typeSID
- stop ID formatS
- transit stop type
- Direct Known Subclasses:
Bus.Alert
,LIRR.Alert
,MNR.Alert
,Subway.Alert
public abstract class TransitAlert<RID,R extends TransitRoute<?,?,?>,SID,S extends TransitStop<?,?,?>>
extends Object
Represents a transit alert.
- Since:
- 1.0.0
- Version:
- 2.0.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TransitAlertPeriod[]
Returns when the alert is active.abstract String
Returns the alert ID.abstract String
Returns the alert type.abstract Date
Returns when the alert was created.abstract Long
Returns when the alert was created as milliseconds since epoch.abstract String
Returns the alert description.abstract String
Returns the alert header.abstract RID[]
Returns which route IDs are affected.abstract R[]
Returns which routes are affected.abstract SID[]
Returns which stop IDs are affected.abstract S[]
getStops()
Returns which stops are affected.abstract Date
Returns when the alert was updated.abstract Long
Returns when the alert was updated as milliseconds since epoch.
-
Constructor Details
-
TransitAlert
public TransitAlert()
-
-
Method Details
-
getAlertID
Returns the alert ID.- Returns:
- alert ID
- Since:
- 1.0.0
-
getActivePeriods
Returns when the alert is active.- Returns:
- alert period
- Since:
- 1.0.0
- See Also:
-
getRouteIDs
Returns which route IDs are affected.- Returns:
- affected route IDs
- Since:
- 1.0.0
- See Also:
-
getRoutes
Returns which routes are affected.- Returns:
- affected routes
- Since:
- 1.0.0
- See Also:
-
getStopIDs
Returns which stop IDs are affected.- Returns:
- affected stop IDs
- Since:
- 1.0.0
- See Also:
-
getStops
Returns which stops are affected.- Returns:
- affected stop IDs
-
getHeader
Returns the alert header.- Returns:
- alert header
- Since:
- 1.0.0
-
getDescription
Returns the alert description.- Returns:
- alert description
- Since:
- 1.0.0
-
getCreatedAt
Returns when the alert was created.- Returns:
- created at
- Since:
- 2.0.0
- See Also:
-
getCreatedAtEpochMillis
Returns when the alert was created as milliseconds since epoch.- Returns:
- created at
- Since:
- 2.0.0
- See Also:
-
getUpdatedAt
Returns when the alert was updated.- Returns:
- created at
- Since:
- 2.0.0
- See Also:
-
getUpdatedAtEpochMillis
Returns when the alert was updated as milliseconds since epoch.- Returns:
- created at
- Since:
- 2.0.0
- See Also:
-
getAlertType
Returns the alert type.- Returns:
- alert type
- Since:
- 1.0.0
-