public int findIndexOfValue(String value){
  final CharSequence[] entryValues=getEntryValues();
  if (value != null && entryValues != null) {
    for (int i=entryValues.length - 1; i >= 0; --i) {
      if (value.equals(entryValues[i])) {
        return i;
      }
    }
  }
  return -1;
}

public int findIndexOfValue ( String value ) { final CharSequence [ ] entryValues = getEntryValues ( ) ; if ( value != null && entryValues != null ) { for ( int i = entryValues . length - 1 ; i >= 0 ; -- i ) { if ( value . equals ( entryValues [ i ] ) ) { return i ; } } } return - 1 ; }
returns the index of the given value ( in the entry values array ) .
