Lines Matching refs:collection

330    * multimap when accessing any of its collection views: <pre>   {@code
440 Collection<V> collection = unmodifiableMap.get(key);
441 return (collection == null)
442 ? null : unmodifiableValueCollection(collection);
793 * Returns an unmodifiable view of the specified collection, preserving the
797 * @param collection the collection for which to return an unmodifiable view
798 * @return an unmodifiable view of the collection
801 Collection<V> collection) {
802 if (collection instanceof SortedSet) {
803 return Collections.unmodifiableSortedSet((SortedSet<V>) collection);
804 } else if (collection instanceof Set) {
805 return Collections.unmodifiableSet((Set<V>) collection);
806 } else if (collection instanceof List) {
807 return Collections.unmodifiableList((List<V>) collection);
809 return Collections.unmodifiableCollection(collection);
815 * UnsupportedOperationException}, and the collection returned by {@code
838 * Returns an unmodifiable view of the specified collection of entries. The
840 * UnsupportedOperationException}. If the specified collection is a {@code
841 * Set}, the returned collection is also a {@code Set}.
859 * the returned collection.
863 * @return an unmodifiable view of the collection entries
920 * collection views is in progress (except through the iterator's own {@code
1180 Collection<V> collection = MapMultimap.this.get((K) key);
1181 return collection.isEmpty() ? null : collection;
1185 Collection<V> collection = removeAll(key);
1186 return collection.isEmpty() ? null : collection;
1682 * function {@code keyFunction} on each value in the input collection to
1747 * function {@code keyFunction} on each value in the input collection to
1831 Collection<V> collection = multimap().asMap().get(entry.getElement());
1832 return collection != null && collection.size() == entry.getCount();
1840 Collection<V> collection = multimap().asMap().get(entry.getElement());
1841 if (collection != null && collection.size() == entry.getCount()) {
1842 collection.clear();
2198 Collection<V> filterCollection(Collection<V> collection, Predicate<V> predicate) {
2199 if (collection instanceof Set) {
2200 return Sets.filter((Set<V>) collection, predicate);
2202 return Collections2.filter(collection, predicate);
2288 Collection<V> collection = entry.getValue();
2290 Collection<V> filteredCollection = filterCollection(collection, valuePredicate);
2294 if (Iterables.all(collection, valuePredicate)) {
2320 @Override public Collection<V> transformEntry(K key, Collection<V> collection) {
2321 return filterCollection(collection, new ValuePredicate(key));
2367 Collection<V> collection = delegate.get(o);
2368 if (collection == null) {
2371 collection.clear();
2402 for (Collection<V> collection : this) {
2403 if (collection.equals(o)) {
2404 collection.clear();
2456 Collection<V> collection = delegate.get(entry.getKey());
2457 if (collection != null && collection.equals(entry.getValue())) {
2458 collection.clear();