Class Fare
Package com.here.sdk.routing
Class Fare
- java.lang.Object
-
- com.here.sdk.routing.Fare
-
public final class Fare extends java.lang.ObjectHolds all the fare data.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringnameName of a fareFarePricepricePrice of a fare.FareReasonreasonReason of this cost.
-
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 booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
name
@NonNull public java.lang.String name
Name of a fare
-
price
@Nullable public FarePrice price
Price of a fare. It is
nullwhen 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
nullwhen no price data is available.reason-Reason of this cost.
-
-