public int getIndex ( Object item ) { if ( ! itemIndex . containsKey ( item ) ) { throw new NoSuchElementException ( "No such item: " + item ) ; } return itemIndex . get ( item ) ; }
Get the index in the list of the specified item .