/** * Searches the set for <tt>obj</tt> * * @param obj an <code>Object</code> value * @return the value in the map */ public Object get(Object obj) { final int index = index(obj); if (index >= 0) { return _set[index]; } else { return null; } }
/** * Removes <tt>obj</tt> from the set. * * @param obj an <code>Object</code> value * @return true if the set was modified by the remove operation. */ public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }