HomeSort by relevance Sort by last modified time
    Searched refs:collection (Results 26 - 50 of 401) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/clang/test/SemaObjC/
foreach.m 43 NSObject<NSFastEnumeration>* collection = ((void*)0);
44 for (id thing in collection) { }
53 void test2(NSObject<NSFastEnumeration> *collection) {
55 for (obj.prop in collection) { /* expected-error {{selector element is not a valid lvalue}} */
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
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;
AbstractSetTester.java 31 * collection in setUp(), but that caused problems when a tester changed the
32 * value of set or collection but not both.
35 return (Set<E>) collection;
CollectionClearTester.java 27 * A generic JUnit test which tests {@code clear()} operations on a collection.
38 collection.clear();
39 assertTrue("After clear(), a collection should be empty.",
40 collection.isEmpty());
47 collection.clear();
48 fail("clear() should throw UnsupportedOperation if a collection does "
59 collection.clear();
CollectionSizeTester.java 22 * A generic JUnit test which tests {@code size()} operations on a collection.
32 assertEquals("size():", getNumElements(), collection.size());
CollectionToStringTester.java 32 * collection. Can't be invoked directly; please see
42 collection.toString());
49 collection.toString());
56 "[" + samples.e0 + "]", collection.toString());
64 assertEquals("collection.toString() incorrect",
65 expected, collection.toString());
ListRetainAllTester.java 43 collection = getSubjectGenerator().create(array);
45 collection.retainAll(MinimalCollection.of(createSamplesArray())));
55 collection = getSubjectGenerator().create(array);
57 collection.retainAll(MinimalCollection.of(samples.e2)));
CollectionAddTester.java 31 * A generic JUnit test which tests {@code add} operations on a collection.
45 collection.add(samples.e3));
52 collection.add(samples.e3);
65 collection.add(samples.e0));
75 assertTrue("add(null) should return true", collection.add(null));
83 collection.add(null);
95 * java.util.Collections#checkedCollection(java.util.Collection, Class)} can
111 * java.util.Collections#checkedCollection(java.util.Collection, Class)} can
CollectionToArrayTester.java 30 import java.util.Collection;
35 * collection. Can't be invoked directly; please see
45 Object[] array = collection.toArray();
50 * {@link Collection#toArray(Object[])} says: "Note that
54 * <p>For maximum effect, the collection under test should be created from an
58 Object[] array = collection.toArray();
64 E[] array = collection.toArray(empty);
74 E[] array = collection.toArray(empty);
83 Object[] array = collection.toArray(in);
94 array, collection.toArray(array))
    [all...]
  /external/webkit/Source/WebKit/qt/Api/
qwebelement.h 201 void append(const QWebElementCollection &collection);
214 inline const_iterator(const QWebElementCollection* collection, int index) : i(index), collection(collection) {}
215 inline const_iterator(const const_iterator& o) : i(o.i), collection(o.collection) {}
217 inline const QWebElement operator*() const { return collection->at(i); }
219 inline bool operator==(const const_iterator& o) const { return i == o.i && collection == o.collection; }
220 inline bool operator!=(const const_iterator& o) const { return i != o.i || collection != o.collection;
237 const QWebElementCollection* const collection; member in class:QWebElementCollection::const_iterator
271 const QWebElementCollection* const collection; member in class:QWebElementCollection::iterator
    [all...]
  /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/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...]
  /libcore/luni/src/main/java/java/util/
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/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/webkit/Source/WebCore/bindings/js/
JSHTMLAllCollectionCustom.cpp 44 static JSValue getNamedItems(ExecState* exec, JSHTMLAllCollection* collection, const Identifier& propertyName)
47 collection->impl()->namedItems(identifierToAtomicString(propertyName), namedItems);
52 return toJS(exec, collection->globalObject(), namedItems[0].get());
57 return toJS(exec, collection->globalObject(), StaticNodeList::adopt(namedItems).get());
69 HTMLAllCollection* collection = static_cast<HTMLAllCollection*>(jsCollection->impl()); local
79 return JSValue::encode(toJS(exec, jsCollection->globalObject(), collection->item(index)));
91 Node* node = collection->namedItem(pstr);
95 node = collection->nextNamedItem(pstr);
109 bool JSHTMLAllCollection::canGetItemsForName(ExecState*, HTMLAllCollection* collection, const Identifier& propertyName)
112 collection->namedItems(identifierToAtomicString(propertyName), namedItems)
    [all...]

Completed in 155 milliseconds

12 3 4 5 6 7 8 91011>>