HomeSort by relevance Sort by last modified time
    Searched refs:collection (Results 1 - 25 of 101) sorted by null

1 2 3 4 5

  /external/guava/src/com/google/common/collect/
ImmutableAsList.java 24 * List returned by {@link ImmutableCollection#asList} when the collection isn't
31 private final transient ImmutableCollection<E> collection; field in class:ImmutableAsList
33 ImmutableAsList(Object[] array, ImmutableCollection<E> collection) {
35 this.collection = collection;
39 // The collection's contains() is at least as fast as RegularImmutableList's
41 return collection.contains(target);
48 final ImmutableCollection<?> collection; field in class:ImmutableAsList.SerializedForm
49 SerializedForm(ImmutableCollection<?> collection) {
50 this.collection = collection
    [all...]
ForwardingCollection.java 21 import java.util.Collection;
25 * A collection which forwards all its method calls to another collection.
27 * the backing collection as desired per the <a
36 implements Collection<E> {
38 @Override protected abstract Collection<E> delegate();
48 public boolean removeAll(Collection<?> collection) {
49 return delegate().removeAll(collection);
76 public boolean containsAll(Collection<?> collection)
    [all...]
AbstractMultimap.java 29 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
91 * The map variable contains the collection of values associated with each
93 * contain any values for that key, a new collection generated by
94 * createCollection is added to the map. That same collection instanc
187 Collection<V> collection = map.get(key); local
194 Collection<V> collection = getOrCreateCollection(key); local
205 Collection<V> collection = map.get(key); local
214 Collection<V> collection = map.get(key); local
235 Collection<V> collection = getOrCreateCollection(key); local
273 Collection<V> collection = getOrCreateCollection(key); local
295 Collection<V> collection = map.remove(key); local
337 Collection<V> collection = map.get(key); local
867 Collection<V> collection = entry.getValue(); local
883 Collection<V> collection = subMap.remove(key); local
956 Collection<V> collection; local
1009 Collection<V> collection = map.get(entry.getElement()); local
1030 Collection<V> collection = map.get(key); local
1053 Collection<V> collection; local
1237 Collection<V> collection; field in class:EntryIterator
1323 Collection<V> collection = Maps.safeGet(submap, key); local
1337 Collection<V> collection = submap.remove(key); local
1390 Collection<V> collection; field in class:AsMap.AsMapIterator
    [all...]
Collections2.java 26 import java.util.Collection;
36 * Provides static methods for working with {@code Collection} instances.
48 * Returns {@code true} if the collection {@code self} contains all of the
49 * elements in the collection {@code c}.
51 * <p>This method iterates over the specified collection {@code c}, checking
53 * the specified collection {@code self}. If all elements are so contained,
56 * @param self a collection which might contain all elements in {@code c}
57 * @param c a collection whose elements might be contained by {@code self}
60 static boolean containsAll(Collection<?> self, Collection<?> c)
    [all...]
  /dalvik/libcore/security/src/main/java/java/security/cert/
CollectionCertStoreParameters.java 20 import java.util.Collection;
24 * The parameters to initialize a <i>Collection</i> type {@code CertStore} instance.
26 * It is used to specify the {@code Collection} where the {@code CertStore} will
30 // Default empty and immutable collection.
33 private static final Collection<?> defaultCollection = Collections.EMPTY_SET;
34 // A <code>Collection</code> of <code>Certificate</code>s
36 private final Collection<?> collection; field in class:CollectionCertStoreParameters
39 * Creates a new {@code CollectionCertStoreParameters} without a collection.
41 * The default collection is an empty and unmodifiable {@code Collection}
    [all...]
  /dalvik/libcore/luni/src/main/java/java/util/
Collection.java 22 * {@code Collection} is the root of the collection hierarchy. It defines operations on
24 * of {@code Collection}s.
26 * All direct or indirect implementations of {@code Collection} should implement at
28 * collection and one with a parameter of type {@code Collection}. This second
29 * constructor can be used to create a collection of different type as the
30 * initial collection but with the same elements. Implementations of {@code Collection}
34 * Methods that change the content of a collection throw a
    [all...]
Set.java 26 public interface Set<E> extends Collection<E> {
45 * Adds the objects in the specified collection which do not exist yet in
48 * @param collection
49 * the collection of objects.
58 public boolean addAll(Collection<? extends E> collection);
81 * Searches this set for all objects in the specified collection.
83 * @param collection
84 * the collection of objects.
85 * @return {@code true} if all objects in the specified collection ar
    [all...]
AbstractSet.java 87 * Removes all occurrences in this collection which are contained in the
88 * specified collection.
90 * @param collection
91 * the collection of objects to remove.
92 * @return {@code true} if this collection was modified, {@code false}
95 * if removing from this collection is not supported.
98 public boolean removeAll(Collection<?> collection) {
100 if (size() <= collection.size()) {
103 if (collection.contains(it.next()))
    [all...]
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 126 public boolean addAll(Collection<? extends E> collection) {
127 if (collection.isEmpty()) {
130 if (collection instanceof EnumSet) {
131 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436
143 return super.addAll(collection);
159 public boolean containsAll(Collection<?> collection) {
160 if (collection.isEmpty()) {
163 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> {
45 * Attempts to add all of the objects contained in {@code collection}
46 * to the contents of this {@code Collection} (optional). This implementation
47 * iterates over the given {@code Collection} and calls {@code add} for each
50 * {@code Collection} does not support adding elements, an {@code
53 * If the passed {@code Collection} is changed during the process of adding elements
54 * to this {@code Collection}, the behavior depends on the behavior of the passe
    [all...]
HugeEnumSet.java 142 public boolean addAll(Collection<? extends E> collection) {
143 if (collection.isEmpty() || collection == this) {
147 if (collection instanceof EnumSet) {
148 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436
166 return super.addAll(collection);
217 public boolean containsAll(Collection<?> collection) {
218 if (collection.isEmpty())
    [all...]
HashSet.java 68 * elements in the specified collection.
70 * @param collection
71 * the collection of elements to add.
73 public HashSet(Collection<? extends E> collection) {
74 this(new HashMap<E, HashSet<E>>(collection.size() < 6 ? 11 : collection
76 for (E e : collection) {
AbstractSequentialList.java 42 public boolean addAll(int location, Collection<? extends E> collection) {
44 Iterator<? extends E> colIt = collection.iterator();
  /external/webkit/WebKit/qt/Api/
qwebelement.h 178 void append(const QWebElementCollection &collection);
191 inline const_iterator(const QWebElementCollection* collection, int index) : i(index), collection(collection) {}
192 inline const_iterator(const const_iterator& o) : i(o.i), collection(o.collection) {}
194 inline const QWebElement operator*() const { return collection->at(i); }
196 inline bool operator==(const const_iterator& o) const { return i == o.i && collection == o.collection; }
197 inline bool operator!=(const const_iterator& o) const { return i != o.i || collection != o.collection;
214 const QWebElementCollection* const collection; member in class:QWebElementCollection::const_iterator
248 const QWebElementCollection* const collection; member in class:QWebElementCollection::iterator
    [all...]
  /external/webkit/WebCore/bindings/js/
JSHTMLCollectionCustom.cpp 40 static JSValue getNamedItems(ExecState* exec, JSHTMLCollection* collection, const Identifier& propertyName)
43 collection->impl()->namedItems(propertyName, namedItems);
48 return toJS(exec, collection->globalObject(), namedItems[0].get());
53 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
65 HTMLCollection* collection = jsCollection->impl(); local
75 return toJS(exec, jsCollection->globalObject(), collection->item(index));
87 Node* node = collection->namedItem(pstr);
91 node = collection->nextNamedItem(pstr);
105 bool JSHTMLCollection::canGetItemsForName(ExecState*, HTMLCollection* collection, const Identifier& propertyName)
108 collection->namedItems(propertyName, namedItems)
    [all...]
JSHTMLAllCollectionCustom.cpp 43 static JSValue getNamedItems(ExecState* exec, JSHTMLAllCollection* collection, const Identifier& propertyName)
46 collection->impl()->namedItems(propertyName, namedItems);
51 return toJS(exec, collection->globalObject(), namedItems[0].get());
56 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
68 HTMLAllCollection* collection = static_cast<HTMLAllCollection*>(jsCollection->impl()); local
78 return toJS(exec, jsCollection->globalObject(), collection->item(index));
90 Node* node = collection->namedItem(pstr);
94 node = collection->nextNamedItem(pstr);
108 bool JSHTMLAllCollection::canGetItemsForName(ExecState*, HTMLAllCollection* collection, const Identifier& propertyName)
111 collection->namedItems(propertyName, namedItems)
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
SearchableCorporaTest.java 22 import java.util.Collection;
59 static void assertEmpty(Collection<?> collection) {
60 assertNotNull(collection);
61 assertTrue(collection.isEmpty());
64 static void assertNotEmpty(Collection<?> collection) {
65 assertNotNull(collection);
66 assertFalse(collection.isEmpty());
  /external/webkit/WebKitTools/Scripts/webkitpy/
patchcollection_unittest.py 38 return "test-collection"
52 collection = PersistentPatchCollection(TestPersistentPatchCollectionDelegate())
53 collection.next()
  /dalvik/libcore/dom/src/test/java/org/w3c/domts/
DOMTestInnerClass.java 15 import java.util.Collection;
61 public void assertSize(String assertID, int expectedSize, NodeList collection) {
62 test.assertSize(assertID, expectedSize, collection);
66 NamedNodeMap collection) {
67 test.assertSize(assertID, expectedSize, collection);
71 Collection collection) {
72 test.assertSize(assertID, expectedSize, collection);
80 public void assertEqualsIgnoreCase(String assertID, Collection expected,
81 Collection actual)
    [all...]
DOMTestFramework.java 15 import java.util.Collection;
60 NodeList collection);
66 NamedNodeMap collection);
72 Collection collection);
83 Collection expected,
84 Collection actual);
119 Collection expected,
120 Collection actual);
156 boolean equalsIgnoreCase(Collection expected, Collection actual)
    [all...]
  /external/webkit/WebCore/bindings/v8/
V8Collection.h 51 template<class Collection> static Collection* toNativeCollection(v8::Local<v8::Object> object)
53 return reinterpret_cast<Collection*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
61 // Returns named property of a collection.
62 template<class Collection, class ItemType> static v8::Handle<v8::Value> getNamedPropertyOfCollection(v8::Local<v8::String> name, v8::Local<v8::Object> object)
64 // FIXME: assert object is a collection type
67 Collection* collection = toNativeCollection<Collection>(object); local
69 return getV8Object<ItemType>(collection->namedItem(propertyName))
93 Collection* collection = toNativeCollection<Collection>(object); local
107 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
122 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
139 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
150 Collection* collection = toNativeCollection<Collection>(info.Holder()); local
    [all...]
  /dalvik/libcore/luni/src/test/java/tests/api/java/util/
EnumMapTest.java 26 import java.util.Collection;
442 Collection c = new ArrayList();
710 Collection c = new ArrayList();
1092 Collection collection = enumColorMap.values(); local
    [all...]
  /external/webkit/JavaScriptCore/wtf/
HashCountedSet.h 195 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits>& collection, VectorType& vector)
199 vector.resize(collection.size());
201 iterator it = collection.begin();
202 iterator end = collection.end();
208 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits>& collection, Vector<Value>& vector)
212 vector.resize(collection.size());
214 iterator it = collection.begin();
215 iterator end = collection.end();

Completed in 1236 milliseconds

1 2 3 4 5