@Override protected void colRemoveAt(int index) { removeAt(index); }
/** * Remove all values in the array set that do <b>not</b> exist in the given collection. * @param collection The collection whose contents are to be used to determine which * values to keep. * @return Returns true if any values were removed from the array set, else false. */ @Override public boolean retainAll(Collection<?> collection) { boolean removed = false; for (int i=mSize-1; i>=0; i--) { if (!collection.contains(mArray[i])) { removeAt(i); removed = true; } } return removed; } }
/** * Removes the specified object from this set. * * @param object the object to remove. * @return {@code true} if this set was modified, {@code false} otherwise. */ @Override public boolean remove(Object object) { final int index = indexOf(object); if (index >= 0) { removeAt(index); return true; } return false; }
@Override protected void colRemoveAt(int index) { removeAt(index); }
@Override protected void colRemoveAt(int index) { removeAt(index); }
/** * Remove all values in the array set that do <b>not</b> exist in the given collection. * @param collection The collection whose contents are to be used to determine which * values to keep. * @return Returns true if any values were removed from the array set, else false. */ @Override public boolean retainAll(Collection<?> collection) { boolean removed = false; for (int i=mSize-1; i>=0; i--) { if (!collection.contains(mArray[i])) { removeAt(i); removed = true; } } return removed; } }
/** * Remove all values in the array set that do <b>not</b> exist in the given collection. * @param collection The collection whose contents are to be used to determine which * values to keep. * @return Returns true if any values were removed from the array set, else false. */ @Override public boolean retainAll(Collection<?> collection) { boolean removed = false; for (int i=mSize-1; i>=0; i--) { if (!collection.contains(mArray[i])) { removeAt(i); removed = true; } } return removed; } }
/** * Removes the specified object from this set. * * @param object the object to remove. * @return {@code true} if this set was modified, {@code false} otherwise. */ @Override public boolean remove(Object object) { final int index = indexOf(object); if (index >= 0) { removeAt(index); return true; } return false; }
/** * Removes the specified object from this set. * * @param object the object to remove. * @return {@code true} if this set was modified, {@code false} otherwise. */ @Override public boolean remove(Object object) { final int index = indexOf(object); if (index >= 0) { removeAt(index); return true; } return false; }