package com.conveyal.gtfs.model;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * This table does not exist in GTFS. It is a join of fare_attributes and fare_rules on fare_id.
 * There should only be one fare_attribute per fare_id, but there can be many fare_rules per fare_id.
 */
public class Fare implements Serializable {
    public static final long serialVersionUID = 1L;

    public String         fare_id;
    public FareAttribute  fare_attribute;
    public List<FareRule> fare_rules;

    public Fare(String fare_id) {
        this.fare_id = fare_id;
        this.fare_attribute = new FareAttribute();
        this.fare_rules = Lists.newArrayList();
    }

}

@@ -599,16 +599,39 @@
 re_rules
+ = Lists.newArrayList()
 ;%0A%0A    p
@@ -695,107 +695,8 @@
 id;%0A
-        this.fare_attribute = new FareAttribute();%0A        this.fare_rules = Lists.newArrayList();%0A
     

revert fare change