Class TransitIncident

  • java.lang.Object
    • com.here.sdk.routing.TransitIncident

  • public final class TransitIncident
    extends java.lang.Object

    A 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.String description
      A human readable description of the incident
      TransitIncidentEffect effect
      Effect of the incident.
      java.lang.String summary
      A human readable summary of the incident.
      TransitIncidentType type
      Type of the incident.
      java.lang.String url
      Link to the original incident published at the agency website.
      java.util.Date validFrom
      Valid from.
      java.util.Date validUntil
      Valid 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
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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

      • 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.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object