Lines Matching defs:collection
518 // collection pass into a new array. This avoids binary searches and excessive memcpy.
641 // specialized collection APIs.
709 * Determine if the array set contains all of the values in the given collection.
710 * @param collection The collection whose contents are to be checked against.
712 * in <var>collection</var>, else returns false.
715 public boolean containsAll(Collection<?> collection) {
716 Iterator<?> it = collection.iterator();
726 * Perform an {@link #add(Object)} of all values in <var>collection</var>
727 * @param collection The collection whose contents are to be retrieved.
730 public boolean addAll(Collection<? extends E> collection) {
731 ensureCapacity(mSize + collection.size());
733 for (E value : collection) {
740 * Remove all values in the array set that exist in the given collection.
741 * @param collection The collection whose contents are to be used to remove values.
745 public boolean removeAll(Collection<?> collection) {
747 for (Object value : collection) {
754 * Remove all values in the array set that do <b>not</b> exist in the given collection.
755 * @param collection The collection whose contents are to be used to determine which
760 public boolean retainAll(Collection<?> collection) {
763 if (!collection.contains(mArray[i])) {