src/main/java/com/conveyal/gtfs/loader/Field.java
public static int getFieldIndex (Field[] fields, String name) {
        // Linear search, assuming a small number of fields per table.
        for (int i = 0; i < fields.length; i++) if (fields[i].name.equals(name)) return i;
        return -1;
    }
public static int getFieldIndex (Field[] fields, String name) {
        // Linear search, assuming a small number of fields per table.
        for (int i = 0; i < fields.length; i++) if (fields[i].name.equals(name)) return i;
        return -1;
    }
public static int getFieldIndex ( Field [ ] fields , String name ) { // Linear search, assuming a small number of fields per table. for ( int i = 0 ; i < fields . length ; i ++ ) if ( fields [ i ] . name . equals ( name ) ) return i ; return - 1 ; }
Finds the index of the field given a string name.
@return the index of the field or -1 if no match is found
Finds the index of the field given a string name .