Class TransitIncident
Package com.here.sdk.routing
Class TransitIncident
- java.lang.Object
-
- com.here.sdk.routing.TransitIncident
-
public final class TransitIncident extends java.lang.ObjectA transit incident describes disruptions on the transit network. Disruptions scale from delays to service cancellations.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringdescriptionA human readable description of the incidentTransitIncidentEffecteffectEffect of the incident.java.lang.StringsummaryA human readable summary of the incident.TransitIncidentTypetypeType of the incident.java.lang.StringurlLink to the original incident published at the agency website.java.util.DatevalidFromValid from.java.util.DatevalidUntilValid until.
-
Constructor Summary
Constructors Constructor Description TransitIncident(java.lang.String summary, java.lang.String description, TransitIncidentType type, TransitIncidentEffect effect, java.util.Date validFrom, java.util.Date validUntil, java.lang.String url)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
summary
@Nullable public java.lang.String summary
A human readable summary of the incident.
-
description
@Nullable public java.lang.String description
A human readable description of the incident
-
type
@Nullable public TransitIncidentType type
Type of the incident.
-
effect
@Nullable public TransitIncidentEffect effect
Effect of the incident.
-
validFrom
@Nullable public java.util.Date validFrom
Valid from.
-
validUntil
@Nullable public java.util.Date validUntil
Valid until.
-
url
@Nullable public java.lang.String url
Link to the original incident published at the agency website.
-
-
Constructor Detail
-
TransitIncident
public TransitIncident(@Nullable java.lang.String summary, @Nullable java.lang.String description, @Nullable TransitIncidentType type, @Nullable TransitIncidentEffect effect, @Nullable java.util.Date validFrom, @Nullable java.util.Date validUntil, @Nullable java.lang.String url)Creates a new instance.
- Parameters:
summary-A human readable summary of the incident.
description-A human readable description of the incident
type-Type of the incident.
effect-Effect of the incident.
validFrom-Valid from.
validUntil-Valid until.
url-Link to the original incident published at the agency website.
-
-