Searched refs:remove (Results 51 - 75 of 315) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java167 * map.remove(key);
181 * @throws UnsupportedOperationException if the {@code remove} operation
190 boolean remove(Object key, Object value); method in interface:ConcurrentMap
349 * ? map.remove(key, oldValue)
375 ? remove(key, oldValue)
398 * } else if (oldValue == null || map.remove(key, oldValue)) {
432 } else if (oldValue == null || remove(key, oldValue)) {
455 * } else if (map.remove(key, oldValue)) {
490 } else if (remove(key, oldValue)) {
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestUtils.java74 properties.remove(key);
H A DSystemScope.java140 names.remove(name);
146 keys.remove(key);
H A DMyKeyStore.java95 Cert.remove(alias);
110 Cert.remove(alias);
113 Chain.remove(alias);
133 Keys.remove(alias);
134 Chain.remove(alias);
138 Cert.remove(alias);
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest2.java54 map.remove("one");
H A DSupport_CollectionTest.java54 // remove
55 assertTrue("CollectionTest - a) remove did not work", col
56 .remove(new Integer(101)));
57 assertTrue("CollectionTest - b) remove did not work", !col
69 col.remove(new Integer(101));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractMapTest.java44 // that uses the default remove behavior.
100 * java.util.AbstractMap#remove(java.lang.Object)
108 assertSame("HashMap(0)", map1.remove("key"), value);
112 assertSame("IdentityHashMap", map4.remove(key), value);
116 assertSame("LinkedHashMap", map5.remove(key), value);
125 assertSame("TreeMap", map6.remove(key), value);
129 assertSame("WeakHashMap", map7.remove(key), value);
133 Object valueOut = aSpecialMap.remove(specialKey);
329 public void remove() {
392 assertFalse(view.remove(nul
[all...]
H A DIdentityHashMap2Test.java275 it.remove();
277 it.remove();
280 list.remove(remove1);
281 list.remove(remove2);
298 it2.remove();
346 * java.util.IdentityHashMap#remove(java.lang.Object)
350 // java.util.IdentityHashMap.remove(java.lang.Object)
352 Integer x = ((Integer) hm.remove(objArray2[9]));
354 assertNull("Failed to remove given key", hm.get(objArray2[9]));
357 .remove("LCLCL
[all...]
H A DArrayDequeTest.java434 * {@link java.util.ArrayDeque#remove()}
441 assertEquals(testObjOne, testQue.remove());
443 assertEquals(testObjTwo, testQue.remove());
444 assertEquals(testObjThree, testQue.remove());
447 testQue.remove();
566 testQue.remove();
567 testQue.remove();
585 testQue.remove();
586 testQue.remove();
605 result.remove();
[all...]
H A DEnumSetTest.java149 iterator.remove();
155 iterator.remove();
398 anotherSetWithSubclass.remove(EnumWithInnerClass.a);
468 anotherHugeSetWithSubclass.remove(HugeEnumWithInnerClass.a);
475 * java.util.EnumSet#remove(Object)
484 boolean result = set.remove(null);
487 result = set.remove(EnumFoo.a);
489 result = set.remove(EnumFoo.a);
494 result = set.remove(EnumWithInnerClass.a);
496 result = set.remove(EnumWithInnerClas
[all...]
H A DConcurrentModTest.java50 al.remove(1); // remove the 2.0
94 al.remove(1); // remove the 2.0
124 al.remove(1); // remove the 2.0
154 al.remove(1); // remove the 2.0
157 // illegal call the subList's method remove(int).
158 sub.remove(
[all...]
H A DAbstractQueueTest.java58 public void remove() {
259 * java.util.AbstractQueue#remove()
263 queue.remove();
272 * java.util.AbstractQueue#remove()
279 assertEquals('a', queue.remove());
280 assertEquals('b', queue.remove());
282 queue.remove();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockFilter.java65 features.remove(name);
73 properties.remove(name);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DThreadLocalTest.java43 * remove causes next access to return initial value
49 tl.remove();
54 * remove in InheritableThreadLocal causes next access to return
61 itl.remove();
H A DConcurrentLinkedDequeTest.java111 q.remove();
112 q.remove();
123 q.remove();
424 * remove() removes next element, or throws NSEE if empty
429 assertEquals(i, q.remove());
432 q.remove();
438 * remove(x) removes x and returns true if present
444 assertTrue(q.remove(i));
450 assertTrue(q.remove(i));
452 assertFalse(q.remove(
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DAbstractList.java43 * {@link #add(int, Object) add(int, E)} and {@link #remove(int)} methods.
56 * {@link #remove(int)}.
160 public E remove(int index) { method in class:AbstractList
226 * {@code UnsupportedOperationException} unless {@code remove(int
274 * {@code get(int)}, and {@code remove(int)} methods.
278 * {@code remove} method unless the list's {@code remove(int)} method is
310 * and {@code remove(int)} methods.
314 * {@code remove}, {@code set} and {@code add} methods unless the
315 * list's {@code remove(in
368 public void remove() { method in class:AbstractList.Itr
657 public E remove(int index) { method in class:SubList
[all...]
H A DList.java46 * <tt>iterator</tt>, <tt>add</tt>, <tt>remove</tt>, <tt>equals</tt>, and
70 * remove multiple elements at an arbitrary point in the list.<p>
258 * @throws UnsupportedOperationException if the <tt>remove</tt> operation
261 boolean remove(Object o); method in interface:List
353 * @see #remove(Object)
375 * @see #remove(Object)
617 * @throws UnsupportedOperationException if the <tt>remove</tt> operation
622 E remove(int index); method in interface:List
H A DMap.java263 * @throws UnsupportedOperationException if the {@code remove} operation
272 V remove(Object key); method in interface:Map
315 * the iterator's own {@code remove} operation), the results of
318 * {@code Iterator.remove}, {@code Set.remove},
332 * (except through the iterator's own {@code remove} operation),
335 * mapping from the map, via the {@code Iterator.remove},
336 * {@code Collection.remove}, {@code removeAll},
349 * the iterator's own {@code remove} operation, or through the
353 * mapping from the map, via the {@code Iterator.remove},
784 default boolean remove(Object key, Object value) { method in interface:Map
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileChannelImpl.java191 threads.remove(ti);
219 threads.remove(ti);
243 threads.remove(ti);
271 threads.remove(ti);
299 threads.remove(ti);
324 threads.remove(ti);
346 threads.remove(ti);
402 threads.remove(ti);
422 threads.remove(ti);
476 threads.remove(t
1197 public void remove(FileLock fl) { method in class:FileChannelImpl.SimpleFileLockTable
[all...]
H A DFileLockTable.java61 public abstract void remove(FileLock fl); method in class:FileLockTable
169 lockMap.remove(fk);
174 public void remove(FileLock fl) { method in class:SharedFileLockTable
189 list.remove(index);
208 // remove locks obtained by this channel
210 // remove the lock from the list
212 list.remove(index);
221 // once the lock list is empty we remove it from the map
267 list.remove(ref);
H A DSimpleAsynchronousFileChannelImpl.java120 threads.remove(ti);
150 threads.remove(ti);
168 threads.remove(ti);
220 threads.remove(ti);
278 threads.remove(ti);
330 threads.remove(ti);
384 threads.remove(ti);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseChronology.java473 fieldValues.remove(ERA);
474 fieldValues.remove(YEAR_OF_ERA);
477 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1);
478 long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1);
481 int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR);
482 int dom = range(DAY_OF_MONTH).checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH);
506 fieldValues.remove(ERA);
507 fieldValues.remove(YEAR_OF_ERA);
510 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1);
513 int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEA
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DElementImpl.java220 attributes.remove(i);
229 attributes.remove(i);
240 attributes.remove(oldAttrImpl);
285 attributes.remove(i);
310 attributes.remove(i);
357 return ElementImpl.this.attributes.remove(i);
368 return ElementImpl.this.attributes.remove(i);
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DFlagOpTest.java102 notKnown.remove(f);
127 known.remove(f);
141 known.remove(f);
175 preserve.remove(f);
209 known.remove(f);
210 preserve.remove(f);
238 serKnown.remove(f);
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DSunCertPathBuilder.java463 unresCritExts.remove(BasicConstraints_Id.toString());
464 unresCritExts.remove(NameConstraints_Id.toString());
465 unresCritExts.remove(CertificatePolicies_Id.toString());
466 unresCritExts.remove(PolicyMappings_Id.toString());
467 unresCritExts.remove(PolicyConstraints_Id.toString());
468 unresCritExts.remove(InhibitAnyPolicy_Id.toString());
469 unresCritExts.remove(
471 unresCritExts.remove(KeyUsage_Id.toString());
472 unresCritExts.remove(ExtendedKeyUsage_Id.toString());

Completed in 632 milliseconds

1234567891011>>