code: public int indexOf(Object o) {
  		try {
  			for (int i = 0; i < events.size(); i++) {
  				if (events.get(i).equals(o)) {
  					return i;
  				}
  			}
  		} catch (IOException e) {
  			e.printStackTrace();
  		}
  		return -1;
  	}
docs: /*
  (non-Javadoc)
  
  @see java.util.List#indexOf(java.lang.Object)