Lines Matching refs:collection
117 Collection<?> collection = (Collection<?>) iterable;
119 return collection.contains(element);
131 * collection.
134 * collection, and {@link Iterators#removeAll} otherwise.
149 * provided collection.
152 * collection, and {@link Iterators#retainAll} otherwise.
292 * Converts an iterable into a collection. If the iterable is already a
293 * collection, it is returned. Otherwise, an {@link java.util.ArrayList} is
303 * Adds all elements in {@code iterable} to {@code collection}.
305 * @return {@code true} if {@code collection} was modified as a result of this
688 Collection<T> collection = (Collection<T>) iterable;
689 Preconditions.checkElementIndex(position, collection.size());
749 // TODO(kevinb): Support a concurrently modified collection?
781 Collection<T> collection = (Collection<T>) iterable;
782 if (collection.isEmpty()) {
839 // TODO(kevinb): Support a concurrently modified collection?
1024 * <p><b>Warning:</b> Do not use this method for a collection, such as a
1028 * @param o an element to remove from the collection