public int indexOf ( DurationFieldType type ) { for ( int i = 0 , isize = size ( ) ; i < isize ; i ++ ) { if ( iTypes [ i ] == type ) { return i ; } } return - 1 ; }
Gets the index of the field in this period .