public int indexOf ( DateTimeFieldType type ) { for ( int i = 0 , isize = size ( ) ; i < isize ; i ++ ) { if ( getFieldType ( i ) == type ) { return i ; } } return - 1 ; }
Gets the index of the specified field or - 1 if the field is unsupported .