Class Fare

java.lang.Object
ai.nextbillion.maps.model.Fare
All Implemented Interfaces:
java.io.Serializable

public class Fare
extends java.lang.Object
implements java.io.Serializable
A representation of ticket cost for use on public transit.

See the Routes Documentation for more detail.

See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.util.Currency currency
    The currency that the amount is expressed in.
    java.math.BigDecimal value
    The total fare amount, in the currency specified in currency.
  • Constructor Summary

    Constructors 
    Constructor Description
    Fare()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • currency

      public java.util.Currency currency
      The currency that the amount is expressed in.
    • value

      public java.math.BigDecimal value
      The total fare amount, in the currency specified in currency.
  • Constructor Details

    • Fare

      public Fare()
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object