Searched refs:collection (Results 1 - 25 of 34) sorted by relevance

12

/libcore/luni/src/main/java/java/security/cert/
H A DCollectionCertStoreParameters.java30 // Default empty and immutable collection.
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}.
44 this.collection = defaultCollection;
49 * collection.
51 * The specified collection is not copied and therefore may be modified at
54 * @param collection
55 * the collection where the {@code Certificate}s and {@code CRL}s
58 * if {@code collection i
60 CollectionCertStoreParameters(Collection<?> collection) argument
[all...]
/libcore/luni/src/main/java/java/util/
H A DCollection.java22 * {@code Collection} is the root of the collection hierarchy. It defines operations on
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 an
35 * {@code UnsupportedOperationException} if the underlying collection does not
37 * in cases where the requested operation would not change the collection. In
42 * {@code UnsupportedOperationException} if the underlying collection doesn't
52 * is contained in the collection.
54 * If the collection wa
107 addAll(Collection<? extends E> collection) argument
159 containsAll(Collection<?> collection) argument
245 removeAll(Collection<?> collection) argument
269 retainAll(Collection<?> collection) argument
[all...]
H A DSet.java45 * 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); argument
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 are
88 public boolean containsAll(Collection<?> collection); argument
144 * Removes all objects in the specified collection fro
152 removeAll(Collection<?> collection) argument
164 retainAll(Collection<?> collection) argument
[all...]
H A DAbstractSet.java86 * Removes all occurrences in this collection which are contained in the
87 * specified collection.
89 * @param collection
90 * the collection of objects to remove.
91 * @return {@code true} if this collection was modified, {@code false}
94 * if removing from this collection is not supported.
97 public boolean removeAll(Collection<?> collection) { argument
99 if (size() <= collection.size()) {
102 if (collection.contains(it.next())) {
108 Iterator<?> it = collection
[all...]
H A DLinkedHashSet.java73 * elements in the specified collection.
75 * @param collection
76 * the collection of elements to add.
78 public LinkedHashSet(Collection<? extends E> collection) { argument
79 super(new LinkedHashMap<E, HashSet<E>>(collection.size() < 6 ? 11
80 : collection.size() * 2));
81 for (E e : collection) {
H A DList.java22 * A {@code List} is a collection which maintains an ordering for its elements. Every
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).
88 * @throws NullPointerException if {@code collection} is {@code null}.
90 public boolean addAll(int location, Collection<? extends E> collection); argument
93 * Adds the objects in the specified collection to the end of this {@code List}. The
95 * collection'
110 addAll(Collection<? extends E> collection) argument
142 containsAll(Collection<?> collection) argument
277 removeAll(Collection<?> collection) argument
290 retainAll(Collection<?> collection) argument
[all...]
H A DMiniEnumSet.java121 public boolean addAll(Collection<? extends E> collection) { argument
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) { argument
153 if (collection.isEmpty()) {
156 if (collection instanceof MiniEnumSet) {
157 MiniEnumSet<?> set = (MiniEnumSet<?>) collection;
161 return !(collection instanceo
165 removeAll(Collection<?> collection) argument
189 retainAll(Collection<?> collection) argument
[all...]
H A DAbstractCollection.java25 * 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
44 * Attempts to add all of the objects contained in {@code collection}
56 * @param collection
57 * the collection of objects.
68 * if {@code collection} is {@code null}, or if it contains
72 public boolean addAll(Collection<? extends E> collection) { argument
74 Iterator<? extends E> it = collection.iterator();
150 * @param collection
151 * the collection o
164 containsAll(Collection<?> collection) argument
273 removeAll(Collection<?> collection) argument
314 retainAll(Collection<?> collection) argument
[all...]
H A DHugeEnumSet.java137 public boolean addAll(Collection<? extends E> collection) { argument
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) { argument
211 if (collection.isEmpty()) {
214 if (collection instanceof HugeEnumSet) {
215 HugeEnumSet<?> set = (HugeEnumSet<?>) collection;
266 removeAll(Collection<?> collection) argument
294 retainAll(Collection<?> collection) argument
[all...]
H A DHashSet.java68 * elements in the specified collection.
70 * @param collection
71 * the collection of elements to add.
73 public HashSet(Collection<? extends E> collection) { argument
74 this(new HashMap<E, HashSet<E>>(collection.size() < 6 ? 11 : collection
76 for (E e : collection) {
H A DAbstractSequentialList.java41 public boolean addAll(int location, Collection<? extends E> collection) { argument
43 Iterator<? extends E> colIt = collection.iterator();
H A DVector.java104 * {@code collection}. The order of the elements in the new {@code Vector}
105 * is dependent on the iteration order of the seed collection.
107 * @param collection
108 * the collection of elements to add.
110 public Vector(Collection<? extends E> collection) { argument
111 this(collection.size(), 0);
112 Iterator<? extends E> it = collection.iterator();
161 * Inserts the objects in the specified collection at the specified location
165 * the added collection.
169 * @param collection
176 addAll(int location, Collection<? extends E> collection) argument
210 addAll(Collection<? extends E> collection) argument
294 containsAll(Collection<?> collection) argument
739 removeAll(Collection<?> collection) argument
854 retainAll(Collection<?> collection) argument
[all...]
H A DAbstractList.java259 public boolean addAll(int location, Collection<? extends E> collection) { argument
263 collection);
265 size += collection.size();
276 public boolean addAll(Collection<? extends E> collection) { argument
278 boolean result = fullList.addAll(offset + size, collection);
280 size += collection.size();
432 * the collection's iterator.
436 * @param collection
448 public boolean addAll(int location, Collection<? extends E> collection) { argument
449 Iterator<? extends E> it = collection
[all...]
H A DCollections.java372 SynchronizedCollection(Collection<E> collection) { argument
373 c = collection;
377 SynchronizedCollection(Collection<E> collection, Object mutex) { argument
378 c = collection;
388 @Override public boolean addAll(Collection<? extends E> collection) { argument
390 return c.addAll(collection);
406 @Override public boolean containsAll(Collection<?> collection) { argument
408 return c.containsAll(collection);
430 @Override public boolean removeAll(Collection<?> collection) { argument
432 return c.removeAll(collection);
436 retainAll(Collection<?> collection) argument
527 addAll(int location, Collection<? extends E> collection) argument
927 UnmodifiableCollection(Collection<E> collection) argument
935 addAll(Collection<? extends E> collection) argument
947 containsAll(Collection<?> collection) argument
977 removeAll(Collection<?> collection) argument
981 retainAll(Collection<?> collection) argument
1045 addAll(int location, Collection<? extends E> collection) argument
1551 enumeration(Collection<T> collection) argument
1595 max( Collection<? extends T> collection) argument
1621 max(Collection<? extends T> collection, Comparator<? super T> comparator) argument
1651 min( Collection<? extends T> collection) argument
1677 min(Collection<? extends T> collection, Comparator<? super T> comparator) argument
2188 synchronizedCollection( Collection<T> collection) argument
2285 unmodifiableCollection( Collection<? extends E> collection) argument
2715 containsAll(Collection<?> collection) argument
2727 retainAll(Collection<?> collection) argument
2807 containsAll(Collection<?> collection) argument
2819 removeAll(Collection<?> collection) argument
2823 retainAll(Collection<?> collection) argument
[all...]
H A DLinkedList.java252 * elements contained in the specified {@code collection}. The order of the
254 * iteration order of {@code collection}.
256 * @param collection
257 * the collection of elements to add.
259 public LinkedList(Collection<? extends E> collection) { argument
261 addAll(collection);
324 * Inserts the objects in the specified collection at the specified location
326 * returned from the collection's iterator.
330 * @param collection
331 * the collection o
342 addAll(int location, Collection<? extends E> collection) argument
385 addAll(Collection<? extends E> collection) argument
[all...]
H A DTreeSet.java57 * and containing the unique elements in the specified collection.
59 * @param collection
60 * the collection of elements to add.
62 * when an element in the collection does not implement the
63 * Comparable interface, or the elements in the collection
66 public TreeSet(Collection<? extends E> collection) { argument
68 addAll(collection);
117 * Adds the objects in the specified collection to this {@code TreeSet}.
119 * @param collection
120 * the collection o
131 addAll(Collection<? extends E> collection) argument
[all...]
H A DArrayList.java87 * the specified collection.
89 * @param collection
90 * the collection of elements to add.
92 public ArrayList(Collection<? extends E> collection) { argument
93 if (collection == null) {
94 throw new NullPointerException("collection == null");
97 Object[] a = collection.toArray();
180 * Adds the objects in the specified collection to this {@code ArrayList}.
182 * @param collection
183 * the collection o
187 addAll(Collection<? extends E> collection) argument
223 addAll(int index, Collection<? extends E> collection) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestInnerClass.java61 public void assertSize(String assertID, int expectedSize, NodeList collection) { argument
62 test.assertSize(assertID, expectedSize, collection);
66 NamedNodeMap collection) {
67 test.assertSize(assertID, expectedSize, collection);
71 Collection collection) {
72 test.assertSize(assertID, expectedSize, collection);
177 public int size(Collection collection) { argument
178 return test.size(collection);
181 public int size(NamedNodeMap collection) { argument
182 return test.size(collection);
65 assertSize(String assertID, int expectedSize, NamedNodeMap collection) argument
70 assertSize(String assertID, int expectedSize, Collection collection) argument
185 size(NodeList collection) argument
[all...]
H A DDOMTestFramework.java60 NodeList collection);
66 NamedNodeMap collection);
72 Collection collection);
172 int size(Collection collection); argument
174 int size(NamedNodeMap collection); argument
176 int size(NodeList collection); argument
56 assertSize( DOMTestCase test, String assertID, int expectedSize, NodeList collection) argument
62 assertSize( DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) argument
68 assertSize( DOMTestCase test, String assertID, int expectedSize, Collection collection) argument
H A DDOMTestCase.java232 * Asserts that the length of the collection is the expected size.
238 * @param collection
239 * collection
244 NodeList collection) {
245 framework.assertSize(this, assertID, expectedSize, collection);
249 * Asserts that the length of the collection is the expected size.
255 * @param collection
256 * collection
261 NamedNodeMap collection) {
262 framework.assertSize(this, assertID, expectedSize, collection);
241 assertSize( String assertID, int expectedSize, NodeList collection) argument
258 assertSize( String assertID, int expectedSize, NamedNodeMap collection) argument
275 assertSize( String assertID, int expectedSize, Collection collection) argument
957 size(Collection collection) argument
968 size(NamedNodeMap collection) argument
979 size(NodeList collection) argument
[all...]
H A DJUnitTestCaseAdapter.java226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { argument
227 assertEquals(assertID,expectedSize, collection.getLength());
230 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { argument
231 assertEquals(assertID, expectedSize, collection.getLength());
234 public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection) { argument
235 assertEquals(assertID, expectedSize, collection.size());
478 public int size(Collection collection) { argument
479 return collection.size();
482 public int size(NamedNodeMap collection) { argument
483 return collection
486 size(NodeList collection) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java87 * Creates a new instance containing the elements of {@code collection}.
90 public CopyOnWriteArrayList(Collection<? extends E> collection) { argument
91 this((E[]) collection.toArray());
124 public boolean containsAll(Collection<?> collection) { argument
126 return containsAll(collection, snapshot, 0, snapshot.length);
129 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { argument
130 for (Object o : collection) {
282 public synchronized boolean addAll(Collection<? extends E> collection) { argument
283 return addAll(elements.length, collection);
286 public synchronized boolean addAll(int index, Collection<? extends E> collection) { argument
306 addAllAbsent(Collection<? extends E> collection) argument
358 removeAll(Collection<?> collection) argument
362 retainAll(Collection<?> collection) argument
370 removeOrRetain(Collection<?> collection, boolean retain, int from, int to) argument
545 containsAll(Collection<?> collection) argument
595 addAll(int index, Collection<? extends E> collection) argument
606 addAll(Collection<? extends E> collection) argument
633 removeAll(Collection<?> collection) argument
642 retainAll(Collection<?> collection) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DEnumMapTest.java1002 Collection collection = enumColorMap.values();
1005 assertSame("Should be same", collection1, collection);
1007 collection.add(new Integer(1));
1013 assertTrue("Returned false for contained object", collection
1015 assertTrue("Returned false for contained object", collection
1017 assertFalse("Returned true for uncontained object", collection
1020 assertTrue("Returned false when the object can be removed", collection
1022 assertFalse("Returned true for uncontained object", collection
1025 collection.remove(null));
1030 assertTrue("Returned false for contained object", collection
[all...]
H A DArrayListTest.java74 assertTrue("arrayList created from collection has incorrect size", al
78 "arrayList created from collection has incorrect elements",
90 Collection<String> collection = shrinksOnSize("A", "B", "C", "D");
91 ArrayList<String> list = new ArrayList<String>(collection);
894 ArrayList collection = new ArrayList();
895 collection.add("1");
896 collection.add("2");
897 collection.add("3");
898 assertEquals(3, collection.size());
900 list.addAll(0, collection);
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DDerOutputStream.java89 private void encodeValueCollection(ASN1ValueCollection collection) { argument
97 collection.type.encodeASN(this);
199 private void getValueOfLength(ASN1ValueCollection collection) { argument
201 Object[] cv = collection.getValues(content).toArray();
212 collection.type.setEncodingContent(this);
220 seqLen += collection.type.getEncodedLength(this);

Completed in 763 milliseconds

12