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