HERE Android SDK Developer's Guide

TollCostOptions

The class TollCostOptions is a member of com.here.android.mpa.tce .

Class Summary

public final class TollCostOptions

extends java.lang.Object

Represent different input parameters for TollCostRequest.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in TollCostOptions
Constructors

TollCostOptions ()

Create TollCostOptions .

Method Summary

Table 2. Methods in TollCostOptions
Methods

public boolean equals (Object obj)

public String getCurrency ()

Gets currency parameter in currency's ISO-4217 code.

public Date getDeparture ()

Gets the departure time for the given Route.

public TollCostVehicleProfile getVehicleProfile ()

Gets the copy of TollCostVehicleProfile.

public int hashCode ()

public void setCurrency (String currencyCode)

Sets the currency parameter in currency's ISO-4217 code.

public void setDeparture (Date date)

Sets the departure time for the Route.

public void setVehicleProfile (TollCostVehicleProfile vehicleProfile)

Sets the TollCostVehicleProfile parameters.

Class Details

Represent different input parameters for TollCostRequest.

Constructor Details

TollCostOptions ()

Create TollCostOptions .

Method Details

public boolean equals (Object obj)

Parameters:

  • obj

public String getCurrency ()

Gets currency parameter in currency's ISO-4217 code. Default value is EUR .

Returns:

currency parameter;

public Date getDeparture ()

Gets the departure time for the given Route.

Returns:

departure time of route if set previously, otherwise null.

public TollCostVehicleProfile getVehicleProfile ()

Gets the copy of TollCostVehicleProfile.

Returns:

the parameter TollCostVehicleProfile.

public int hashCode ()

public void setCurrency (String currencyCode)

Sets the currency parameter in currency's ISO-4217 code. All of the costs are returned in the specified currency. Default value is EUR .

When the currency is found to be invalid, the related request raises an TollCostError .

Parameters:

  • currencyCode

    - currency's ISO-4217 code in string format.

Throws:

  • IllegalArgumentException

    if format is null or not 3 character long.

public void setDeparture (Date date)

Sets the departure time for the Route.

Parameters:

  • date

    departure time.

Throws:

  • NullPointerException

    if date is null.

public void setVehicleProfile (TollCostVehicleProfile vehicleProfile)

Sets the TollCostVehicleProfile parameters.

Parameters: