Class 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

      All Methods Instance Methods Concrete Methods 
      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 Detail

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

      • Fare

        public Fare()
    • Method Detail

      • toString

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