/libcore/luni/src/main/java/java/util/ |
LinkedHashSet.java | 73 * elements in the specified collection. 75 * @param collection 76 * the collection of elements to add. 78 public LinkedHashSet(Collection<? extends E> collection) { 79 super(new LinkedHashMap<E, HashSet<E>>(collection.size() < 6 ? 11 80 : collection.size() * 2)); 81 for (E e : collection) {
|
List.java | 22 * A {@code List} is a collection which maintains an ordering for its elements. Every 27 public interface List<E> extends Collection<E> { 69 * Inserts the objects in the specified collection at the specified location 71 * the collection's iterator. 75 * @param collection 76 * the collection of objects to be inserted. 78 * otherwise (i.e. if the passed collection was empty). 89 public boolean addAll(int location, Collection<? extends E> collection); 92 * Adds the objects in the specified collection to the end of this {@code List}. Th [all...] |
MiniEnumSet.java | 121 public boolean addAll(Collection<? extends E> collection) { 122 if (collection.isEmpty()) { 125 if (collection instanceof EnumSet) { 126 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 136 return super.addAll(collection); 152 public boolean containsAll(Collection<?> collection) { 153 if (collection.isEmpty()) { 156 if (collection instanceof MiniEnumSet) [all...] |
AbstractCollection.java | 24 * Collection} interface. A subclass must implement the abstract methods {@code 25 * iterator()} and {@code size()} to create an immutable collection. To create a 26 * modifiable collection it's necessary to override the {@code add()} method that 31 public abstract class AbstractCollection<E> implements Collection<E> { 44 * Attempts to add all of the objects contained in {@code collection} 45 * to the contents of this {@code Collection} (optional). This implementation 46 * iterates over the given {@code Collection} and calls {@code add} for each 49 * {@code Collection} does not support adding elements, an {@code 52 * If the passed {@code Collection} is changed during the process of adding elements 53 * to this {@code Collection}, the behavior depends on the behavior of the passe [all...] |
HugeEnumSet.java | 137 public boolean addAll(Collection<? extends E> collection) { 138 if (collection.isEmpty() || collection == this) { 142 if (collection instanceof EnumSet) { 143 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 159 return super.addAll(collection); 210 public boolean containsAll(Collection<?> collection) { 211 if (collection.isEmpty()) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
CollectionContainsAllTester.java | 29 import java.util.Collection; 33 * collection. Can't be invoked directly; please see 46 collection.containsAll(MinimalCollection.of())); 52 collection.containsAll(MinimalCollection.of(samples.e0))); 57 collection.containsAll(MinimalCollection.of(createSamplesArray()))); 62 collection.containsAll(collection)); 67 collection.containsAll(MinimalCollection.of(samples.e0, samples.e3))); 72 collection.containsAll(MinimalCollection.of(samples.e3))); 78 assertFalse(collection.containsAll(MinimalCollection.of((E) null))) [all...] |
CollectionContainsTester.java | 30 * collection. Can't be invoked directly; please see 42 collection.contains(samples.e0)); 47 collection.contains(samples.e3)); 53 collection.contains(null)); 67 collection.contains(samples.e3)); 74 assertTrue("contains(null) should return true", collection.contains(null)); 80 collection.contains(WrongType.VALUE));
|
CollectionRemoveAllTester.java | 34 * collection. Can't be invoked directly; please see 47 collection.removeAll(MinimalCollection.of())); 54 collection.removeAll(MinimalCollection.of(samples.e3))); 62 collection.removeAll(MinimalCollection.of(samples.e0))); 70 collection.removeAll(MinimalCollection.of(samples.e0, samples.e3))); 81 collection.removeAll(MinimalCollection.of( 92 collection.removeAll(MinimalCollection.of())); 103 collection.removeAll(MinimalCollection.of(samples.e3))); 113 collection.removeAll(MinimalCollection.of(samples.e0)); 119 assertTrue(collection.contains(samples.e0)) [all...] |
CollectionAddAllTester.java | 34 * A generic JUnit test which tests addAll operations on a collection. Can't be 48 collection.addAll(emptyCollection())); 56 collection.addAll(emptyCollection())); 65 collection.addAll(createDisjointCollection())); 72 collection.addAll(createDisjointCollection()); 84 collection.addAll(MinimalCollection.of(samples.e3, samples.e0))); 85 assertTrue("should contain " + samples.e3, collection.contains(samples.e3)); 86 assertTrue("should contain " + samples.e0, collection.contains(samples.e0)); 93 collection.addAll(MinimalCollection.of(samples.e3, samples.e0)); 105 collection.addAll(MinimalCollection.of(samples.e0))) [all...] |
CollectionIsEmptyTester.java | 26 * collection. Can't be invoked directly; please see 36 assertTrue("isEmpty() should return true", collection.isEmpty()); 41 assertFalse("isEmpty() should return false", collection.isEmpty());
|
AbstractQueueTester.java | 24 * Base class for queue collection tests. 32 return (Queue<E>) collection;
|
/frameworks/base/media/mca/filterfw/native/base/ |
utilities.h | 73 template <class Collection> 74 const typename Collection::value_type::second_type* 75 FindOrNull(const Collection& collection, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 78 if (it == collection.end()) { 127 template <class Collection> 128 const typename Collection::value_type::second_typ [all...] |
/frameworks/base/media/mca/filterpacks/native/base/ |
utilities.h | 73 template <class Collection> 74 const typename Collection::value_type::second_type* 75 FindOrNull(const Collection& collection, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 78 if (it == collection.end()) { 127 template <class Collection> 128 const typename Collection::value_type::second_typ [all...] |
/external/clang/test/SemaObjC/ |
foreach.m | 43 NSObject<NSFastEnumeration>* collection = ((void*)0); 44 for (id thing in collection) { } /* expected-warning {{unused variable 'thing'}} */ 53 void test2(NSObject<NSFastEnumeration> *collection) { 55 for (obj.prop in collection) { /* expected-error {{selector element is not a valid lvalue}} */
|
/external/guava/guava/src/com/google/common/collect/ |
AbstractMultimap.java | 28 import java.util.Collection; 46 * a multimap as a map that associates each key with a collection of values. All 51 * #createCollection()}, which creates an empty collection of values for a key. 56 * to create the collection of values for that key. The subclass should not call 65 * <p>Keys and values may be null, as long as the underlying collection classes 69 * allow duplicates. If the collection, such as a {@link Set}, does not support 72 * List} that allow duplicates, the collection will keep the existing key-value 92 * The map variable contains the collection of values associated with each 94 * contain any values for that key, a new collection generated by 95 * createCollection is added to the map. That same collection instanc 193 Collection<V> collection = map.get(key); local 201 Collection<V> collection = getOrCreateCollection(key); local 212 Collection<V> collection = map.get(key); local 222 Collection<V> collection = map.get(key); local 244 Collection<V> collection = getOrCreateCollection(key); local 283 Collection<V> collection = getOrCreateCollection(key); local 306 Collection<V> collection = map.remove(key); local 350 Collection<V> collection = map.get(key); local 910 Collection<V> collection = entry.getValue(); local 922 Collection<V> collection = subMap.remove(key); local [all...] |
Collections2.java | 31 import java.util.Collection; 37 * Provides static methods for working with {@code Collection} instances. 50 * returned collection is a live view of {@code unfiltered}; changes to one 53 * <p>The resulting collection's iterator does not support {@code remove()}, 54 * but all other collection methods are supported. When given an element that 55 * doesn't satisfy the predicate, the collection's {@code add()} and {@code 58 * collection, only elements that satisfy the filter will be removed from the 59 * underlying collection. 61 * <p>The returned collection isn't threadsafe or serializable, even if 64 * <p>Many of the filtered collection's methods, such as {@code size()} [all...] |
/external/chromium_org/chrome/browser/browsing_data/ |
browsing_data_appcache_helper_unittest.cc | 55 std::map<GURL, appcache::AppCacheInfoVector>& collection = local 58 ASSERT_EQ(2u, collection.size()); 59 EXPECT_TRUE(ContainsKey(collection, manifest1.GetOrigin())); 60 ASSERT_EQ(1u, collection[manifest1.GetOrigin()].size()); 61 EXPECT_EQ(manifest1, collection[manifest1.GetOrigin()].at(0).manifest_url); 63 EXPECT_TRUE(ContainsKey(collection, manifest2.GetOrigin())); 64 EXPECT_EQ(2u, collection[manifest2.GetOrigin()].size()); 66 manifest_results.insert(collection[manifest2.GetOrigin()].at(0).manifest_url); 67 manifest_results.insert(collection[manifest2.GetOrigin()].at(1).manifest_url); 87 std::map<GURL, appcache::AppCacheInfoVector>& collection local [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/jcajce/ |
JcaCertStore.java | 7 import java.util.Collection; 26 * @param collection - initial contents for the store, this is copied. 28 public JcaCertStore(Collection collection) 31 super(convertCerts(collection)); 34 private static Collection convertCerts(Collection collection) 37 List list = new ArrayList(collection.size()); 39 for (Iterator it = collection.iterator(); it.hasNext(); [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8HTMLFormControlsCollectionCustom.cpp | 43 static v8::Handle<v8::Value> getNamedItems(HTMLFormControlsCollection* collection, const AtomicString& name, const CallbackInfo& info) 46 collection->namedItems(name, namedItems); 54 return toV8(collection->ownerNode()->radioNodeList(name).get(), info.Holder(), info.GetIsolate());
|
/frameworks/support/v4/java/android/support/v4/util/ |
ArrayMap.java | 19 import java.util.Collection; 124 * Determine if the array map contains all of the keys in the given collection. 125 * @param collection The collection whose contents are to be checked against. 127 * in <var>collection</var>, else returns false. 129 public boolean containsAll(Collection<?> collection) { 130 return MapCollections.containsAllHelper(this, collection); 146 * Remove all keys in the array map that exist in the given collection. 147 * @param collection The collection whose contents are to be used to remove keys [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
CollectionStore.java | 4 import java.util.Collection; 9 * A simple collection backed store. 14 private Collection _local; 19 * @param collection - initial contents for the store, this is copied. 22 Collection collection) 24 _local = new ArrayList(collection); 28 * Return the matches in the collection for the passed in selector. 31 * @return a possibly empty collection of matching objects. 33 public Collection getMatches(Selector selector [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
AbstractMultisetTester.java | 24 * Base class for multiset collection tests. 31 return (Multiset<E>) collection; 35 collection =
|
/external/mockito/src/org/mockito/internal/util/collections/ |
ListUtil.java | 8 import java.util.Collection; 13 public static <T> LinkedList<T> filter(Collection<T> collection, Filter<T> filter) { 15 for (T t : collection) {
|
/external/chromium_org/chrome/browser/ui/panels/ |
detached_panel_drag_handler.cc | 16 DCHECK_EQ(PanelCollection::DETACHED, panel->collection()->type());
|
test_panel_collection_squeeze_observer.h | 13 // Custom notification observer for waiting on panel collection that squeezes 18 // Register to listen for panel collection updated notifications 19 // from the specified collection to detect a change to the state 21 // panels in the collection are squeezed. 22 PanelCollectionSqueezeObserver(DockedPanelCollection* collection,
|