public int getIndex(BeliefSetField field) {
    int index = -1;
    for (int i = 0; i < fields.length; i++) {
      if (field.equals(fields[i])) {
        index = i;
      }
    }
    return index;
  }
public int getIndex(BeliefSetField field) {
    int index = -1;
    for (int i = 0; i < fields.length; i++) {
      if (field.equals(fields[i])) {
        index = i;
      }
    }
    return index;
  }
public int getIndex ( BeliefSetField field ) { int index = - 1 ; for ( int i = 0 ; i < fields . length ; i ++ ) { if ( field . equals ( fields [ i ] ) ) { index = i ; } } return index ; }
Gets the index (column) of the given field in this belief set.

@param field the field for which the index is required
@return the index of that field, or -1 if not found
@since 0.3.4
Gets the index ( column ) of the given field in this belief set .