Class RouteTollPass

    • Method Detail

      • includesReturnTrip

        public final Boolean includesReturnTrip()

        If the pass includes the rate for the return leg of the trip.

        Returns:
        If the pass includes the rate for the return leg of the trip.
      • seniorPass

        public final Boolean seniorPass()

        If the pass is only valid for senior persons.

        Returns:
        If the pass is only valid for senior persons.
      • transferCount

        public final Integer transferCount()

        If the toll pass can be transferred, and how many times.

        Returns:
        If the toll pass can be transferred, and how many times.
      • tripCount

        public final Integer tripCount()

        Number of trips the pass is valid for.

        Returns:
        Number of trips the pass is valid for.
      • validityPeriod

        public final RouteTollPassValidityPeriod validityPeriod()

        Period for which the pass is valid.

        Returns:
        Period for which the pass is valid.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)