All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.model.FareZone Maven / Gradle / Ivy

package org.opentripplanner.model;

public class FareZone extends TransitEntity {

  private final String name;

  /**
   * Equal to GTFS zone_id or NeTEx TariffZone.
   */
  // TODO This should at some point be connected to Agency or Operator. Currently is is up to the
  //      user to make this connection (based on TariffZone id).
  public FareZone(FeedScopedId id, String name) {
    super(id);
    this.name = name;
  }

  public String getName() {
    return name;
  }

  /**
   * This method compare all field, not just the id like {@link #equals(Object)}.
   */
  public boolean sameValueAs(FareZone other) {
    return getId().equals(other.getId()) && name.equals(other.name);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy