Class Fare

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

  • public final class Fare
    extends java.lang.Object

    Holds all the fare data.

    • Constructor Summary

      Constructors 
      Constructor Description
      Fare​(java.lang.String name, FarePrice price, FareReason reason)
      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

      • name

        @NonNull
        public java.lang.String name

        Name of a fare

      • price

        @Nullable
        public FarePrice price

        Price of a fare. It is null when no price data is available.

      • reason

        @NonNull
        public FareReason reason

        Reason of this cost.

    • Constructor Detail

      • Fare

        public Fare​(@NonNull
                    java.lang.String name,
                    @Nullable
                    FarePrice price,
                    @NonNull
                    FareReason reason)

        Creates a new instance.

        Parameters:
        name -

        Name of a fare

        price -

        Price of a fare. It is null when no price data is available.

        reason -

        Reason of this cost.

    • 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