Searched refs:collection (Results 201 - 225 of 367) sorted by path

1234567891011>>

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DSetHashCodeTester.java55 collection = getSubjectGenerator().create(elements.toArray());
/external/guava/guava-tests/lib/
H A Dlibtruth-gwt.jar ... truth.subjects.CollectionSubject that (java.util.Collection) java.util.Collection target public org.junit ...
H A Dlibtruth.jar ... truth.subjects.CollectionSubject that (java.util.Collection) java.util.Collection target public org.junit ...
/external/guava/guava-tests/test/com/google/common/base/
H A DSplitterTest.java619 private static <E> List<E> asList(Collection<E> collection){ argument
620 return ImmutableList.copyOf(collection);
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheTesting.java51 * A collection of utilities for {@link Cache} testing.
58 * Poke into the Cache internals to simulate garbage collection of the value associated with the
78 * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
472 static void checkEmpty(Collection<?> collection) { argument
473 assertTrue(collection.isEmpty());
474 assertEquals(0, collection.size());
475 assertFalse(collection.iterator().hasNext());
476 assertEquals(0, collection.toArray().length);
477 assertEquals(0, collection.toArray(new Object[0]).length);
478 if (collection instanceo
[all...]
H A DPopulatedCachesTest.java372 private void assertCollectionSize(Collection<?> collection, int size) { argument
373 assertEquals(size, collection.size());
375 assertFalse(collection.isEmpty());
377 assertTrue(collection.isEmpty());
379 assertEquals(size, Iterables.size(collection));
380 assertEquals(size, Iterators.size(collection.iterator()));
/external/guava/guava-tests/test/com/google/common/collect/
H A DAbstractMultimapTest.java265 Collection<Integer> collection = Lists.newArrayList(1, 3);
266 multimap.putAll("foo", collection);
278 Collection<Integer> collection = Lists.newArrayList(1, nullValue());
279 multimap.putAll(nullKey(), collection);
286 Collection<Integer> collection = Lists.newArrayList();
287 multimap.putAll("foo", collection);
325 private void checkRemovedCollection(Collection<Integer> collection) { argument
327 collection.add(9876);
328 collection.remove(9876);
329 assertFalse(collection
[all...]
H A DConstraintsTest.java76 Collection<String> collection = Lists.newArrayList("foo", "bar");
78 collection, TEST_CONSTRAINT);
79 collection.add(TEST_ELEMENT);
83 ASSERT.that(collection).hasContentsInOrder("foo", "bar", TEST_ELEMENT, "qux", "cat", "dog");
88 Collection<String> collection = Lists.newArrayList("foo", "bar");
90 collection, TEST_CONSTRAINT);
100 ASSERT.that(collection).hasContentsInOrder("foo", "bar");
318 * Returns a "nefarious" collection, which permits only one call to
319 * iterator(). This verifies that the constrained collection uses a defensive
323 * @param element the element to be contained in the collection
[all...]
H A DForwardingCollectionTest.java53 @Override public boolean addAll(Collection<? extends T> collection) { argument
54 return standardAddAll(collection);
65 @Override public boolean containsAll(Collection<?> collection) { argument
66 return standardContainsAll(collection);
73 @Override public boolean removeAll(Collection<?> collection) { argument
74 return standardRemoveAll(collection);
77 @Override public boolean retainAll(Collection<?> collection) { argument
78 return standardRetainAll(collection);
H A DForwardingListTest.java57 @Override public boolean addAll(Collection<? extends T> collection) { argument
58 return standardAddAll(collection);
69 @Override public boolean containsAll(Collection<?> collection) { argument
70 return standardContainsAll(collection);
77 @Override public boolean removeAll(Collection<?> collection) { argument
78 return standardRemoveAll(collection);
81 @Override public boolean retainAll(Collection<?> collection) { argument
82 return standardRetainAll(collection);
H A DForwardingMultisetTest.java55 @Override public boolean addAll(Collection<? extends T> collection) { argument
56 return standardAddAll(collection);
75 @Override public boolean containsAll(Collection<?> collection) { argument
76 return standardContainsAll(collection);
83 @Override public boolean removeAll(Collection<?> collection) { argument
84 return standardRemoveAll(collection);
87 @Override public boolean retainAll(Collection<?> collection) { argument
88 return standardRetainAll(collection);
200 Collection<? extends Entry<String>> collection) {
209 @Override public boolean containsAll(Collection<?> collection) {
[all...]
H A DForwardingQueueTest.java53 @Override public boolean addAll(Collection<? extends T> collection) { argument
54 return standardAddAll(collection);
65 @Override public boolean containsAll(Collection<?> collection) { argument
66 return standardContainsAll(collection);
73 @Override public boolean removeAll(Collection<?> collection) { argument
74 return standardRemoveAll(collection);
77 @Override public boolean retainAll(Collection<?> collection) { argument
78 return standardRetainAll(collection);
H A DForwardingSetTest.java61 @Override public boolean addAll(Collection<? extends T> collection) { argument
62 return standardAddAll(collection);
73 @Override public boolean containsAll(Collection<?> collection) { argument
74 return standardContainsAll(collection);
81 @Override public boolean removeAll(Collection<?> collection) { argument
82 return standardRemoveAll(collection);
85 @Override public boolean retainAll(Collection<?> collection) { argument
86 return standardRetainAll(collection);
H A DForwardingSortedSetTest.java60 @Override public boolean addAll(Collection<? extends T> collection) { argument
61 return standardAddAll(collection);
72 @Override public boolean containsAll(Collection<?> collection) { argument
73 return standardContainsAll(collection);
80 @Override public boolean removeAll(Collection<?> collection) { argument
81 return standardRemoveAll(collection);
84 @Override public boolean retainAll(Collection<?> collection) { argument
85 return standardRetainAll(collection);
H A DIterablesTest.java85 List<Integer> collection = new ArrayList<Integer>(nums) {
91 assertEquals(5, Iterables.size(collection));
H A DMapConstraintsTest.java510 Collection<Integer> collection
513 collection.add(TEST_VALUE);
H A DMultimapsTest.java569 Collection<Integer> collection = multimap.get(Color.BLUE);
570 assertEquals(collection, collection);
/external/guava/guava-tests/test/com/google/common/eventbus/
H A DEventBusTest.java212 private <T> void assertContains(T element, Collection<T> collection) { argument
214 collection.contains(element));
/external/guava/guava/src/com/google/common/collect/
H A DAbstractMultimap.java46 * 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 instance
97 * all values for the key are removed, the key and collection ar
318 unmodifiableCollectionSubclass( Collection<V> collection) argument
362 wrapCollection( @ullable K key, Collection<V> collection) argument
566 addAll(Collection<? extends V> collection) argument
639 iteratorOrListIterator(Collection<V> collection) argument
1111 Collection<V> collection; field in class:AbstractMultimap.EntryIterator
1274 Collection<V> collection; field in class:AbstractMultimap.AsMap.AsMapIterator
[all...]
H A DArrayListMultimap.java122 * Creates a new, empty {@code ArrayList} to hold the collection of values for
133 for (Collection<V> collection : backingMap().values()) {
134 ArrayList<V> arrayList = (ArrayList<V>) collection;
H A DCollections2.java50 * 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()},
65 * iterate across every element in the underlying collection and determine
82 // collection
94 safeContains(Collection<?> collection, Object object) argument
125 addAll(Collection<? extends E> collection) argument
159 containsAll(Collection<?> collection) argument
196 removeAll(final Collection<?> collection) argument
208 retainAll(final Collection<?> collection) argument
317 toStringImpl(final Collection<?> collection) argument
[all...]
H A DConstraints.java69 * Returns a constrained view of the specified collection, using the specified
70 * constraint. Any operations that add new elements to the collection will
74 * <p>The returned collection is not serializable.
76 * @param collection the collection to constrain
78 * @return a constrained view of the collection
81 Collection<E> collection, Constraint<? super E> constraint) {
82 return new ConstrainedCollection<E>(collection, constraint);
307 Collection<E> collection, Constraint<E> constraint) {
308 if (collection instanceo
80 constrainedCollection( Collection<E> collection, Constraint<? super E> constraint) argument
306 constrainedTypePreservingCollection( Collection<E> collection, Constraint<E> constraint) argument
[all...]
H A DForwardingCollection.java29 * A collection which forwards all its method calls to another collection.
31 * backing collection as desired per the <a
69 public boolean removeAll(Collection<?> collection) { argument
70 return delegate().removeAll(collection);
94 public boolean containsAll(Collection<?> collection) { argument
95 return delegate().containsAll(collection);
99 public boolean addAll(Collection<? extends E> collection) { argument
100 return delegate().addAll(collection);
104 public boolean retainAll(Collection<?> collection) { argument
141 standardContainsAll(Collection<?> collection) argument
157 standardAddAll(Collection<? extends E> collection) argument
188 standardRemoveAll(Collection<?> collection) argument
200 standardRetainAll(Collection<?> collection) argument
[all...]
H A DImmutableAsList.java26 * List returned by {@link ImmutableCollection#asList} when the collection isn't
34 private final transient ImmutableCollection<E> collection; field in class:ImmutableAsList
36 ImmutableAsList(Object[] array, ImmutableCollection<E> collection) { argument
38 this.collection = collection;
42 // The collection's contains() is at least as fast as RegularImmutableList's
44 return collection.contains(target);
51 final ImmutableCollection<?> collection; field in class:ImmutableAsList.SerializedForm
52 SerializedForm(ImmutableCollection<?> collection) { argument
53 this.collection
[all...]
H A DImmutableEnumSet.java65 @Override public boolean containsAll(Collection<?> collection) { argument
66 return delegate.containsAll(collection);

Completed in 2373 milliseconds

1234567891011>>