/** * 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. */ @SuppressWarnings({"unchecked"}) public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }
/** * 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. */ @SuppressWarnings({"unchecked"}) public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }
/** * 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. */ @SuppressWarnings({"unchecked"}) public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }
/** * 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. */ @Override @SuppressWarnings({"unchecked"}) public boolean remove(Object obj) { int index = index(obj); if (index >= 0) { removeAt(index); return true; } return false; }
/** * 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. */ @SuppressWarnings({"unchecked"}) public boolean remove( Object obj ) { int index = index( obj ); if ( index >= 0 ) { removeAt( index ); return true; } return false; }