/libcore/luni/src/main/java/java/util/ |
H A D | Collections.java | 62 private final E element; field in class:Collections.CopiesList 69 element = object; 73 return element == null ? object == null : element.equals(object); 82 return element; 225 final E element; field in class:Collections.SingletonSet 228 element = object; 232 return element == null ? object == null : element.equals(object); 250 return element; 265 final E element; field in class:Collections.SingletonList 2773 @Override public E element() { method in class:Collections.AsLIFOQueue [all...] |
H A D | LinkedList.java | 33 * as a list if you expect your lists to contain zero or one element, but still require the 266 * specified location. The object is inserted before any previous element at 480 * @return {@code true} if {@code object} is an element of this 523 * Returns the first element in this {@code LinkedList}. 525 * @return the first element. 542 * Returns the last element in this {@code LinkedList}. 544 * @return the last element 835 E element = iter.next(); 836 if (o == null ? element == null : o.equals(element)) { 911 public E element() { method in class:LinkedList [all...] |
H A D | ArrayDeque.java | 69 * The index of the element at the head of the deque (which is the 70 * element that would be removed by remove() or pop()); or an 76 * The index at which the next element would be added to the tail 134 * Copies the elements from our element array into the specified array, 135 * in order (from first to last element in the deque). It is assumed 172 * iterator. (The first element returned by the collection's 173 * iterator becomes the first element, or <i>front</i> of the 189 * Inserts the specified element at the front of this deque. 191 * @param e the element to add 192 * @throws NullPointerException if the specified element i 440 public E element() { method in class:ArrayDeque [all...] |
/libcore/benchmarks/libs/ |
H A D | caliper.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ... |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/ |
H A D | X500PrincipalTest.java | 2352 for (String element : RFC2253_SPECIAL) { 2354 list.add("CN=\\" + element, 2355 "CN=\\" + element, "CN=\"" + element 2359 list.add("CN=A\\" + element + "B", "CN=A\\" 2360 + element + "B", "CN=\"A" + element 2470 for (String element : RFC2253_SPECIAL) { 2472 list.add("CN=\"" + element + "\"", "CN=\\" 2473 + element, "C [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ThreadGroupTest.java | 351 for (ThreadGroup element : allChildren) { 352 assertTrue("Have to be parentOf all children", testRoot.parentOf(element)); 754 for (Object element : array) { 755 if (element == toTest) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | TreeMapTest.java | 127 for (Object element : objArray) { 129 element.toString()).equals(element)); 171 for (Object element : objArray) { 173 .get(element.toString()) == tm.get(element.toString())); 473 for (Object element : objArray) { 474 assertTrue("Failed to put all elements", x.get(element.toString()) 475 .equals(element)); 685 for (Object element [all...] |
H A D | ArrayDequeTest.java | 466 * {@link java.util.ArrayDeque#element()} 473 assertEquals(testObjOne, testQue.element()); 476 assertEquals(testObjTwo, testQue.element()); 478 assertEquals(testObjThree, testQue.element()); 482 testQue.element();
|
H A D | IdentityHashMapTest.java | 89 assertTrue("cannot get element", empty.get("something") == "here"); 380 assertEquals("Assert 1: After removing non-null element size is incorrect", 0, hashMap.size()); 385 assertEquals("Assert 3: After removing null element size is incorrect", 0, hashMap.size()); 769 Object element = it.next(); 770 if (element == key) { 773 newset.add(element); 778 assertTrue("element is in newset ", !newset.contains(key)); 779 assertTrue("element not removed from keyset", !set.contains(key)); 780 assertTrue("element not removed from map", !map.containsKey(key));
|
/libcore/luni/src/main/java/java/util/logging/ |
H A D | Logger.java | 104 * properly-sized arrays is non-atomic, and risks a null element in the 1027 for (Handler element : allHandlers) { 1028 element.publish(record); 1035 for (Handler element : ha) { 1036 element.publish(record);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldThreadGroupTest.java | 375 for (ThreadGroup element : children) { 376 populateGroupsWithThreads(element, threadCount, out);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentLinkedQueueTest.java | 235 * peek returns next element, or null if empty 249 * element returns next element, or throws NSEE if empty 254 assertEquals(i, q.element()); 258 q.element(); 264 * remove removes next element, or throws NSEE if empty 466 * iterator.remove removes current element
|
H A D | PriorityQueueTest.java | 174 * Offer of comparable element succeeds 271 * peek returns next element, or null if empty 285 * element returns next element, or throws NSEE if empty 290 assertEquals(i, q.element()); 294 q.element(); 300 * remove removes next element, or throws NSEE if empty 448 * iterator.remove removes current element
|
H A D | LinkedListTest.java | 186 * peek returns next element, or null if empty 200 * element returns next element, or throws NSEE if empty 205 assertEquals(i, q.element()); 209 q.element(); 215 * remove removes next element, or throws NSEE if empty 401 * iterator.remove removes current element 453 * descendingIterator.remove removes current element 481 * peek returns element inserted with addFirst 490 * peekFirst returns element inserte [all...] |
H A D | PriorityBlockingQueueTest.java | 168 * Offer of comparable element succeeds 399 * peek returns next element, or null if empty 413 * element returns next element, or throws NSEE if empty 418 assertEquals(i, q.element()); 422 q.element(); 428 * remove removes next element, or throws NSEE if empty 567 * iterator.remove removes current element
|
H A D | ArrayBlockingQueueTest.java | 455 * peek returns next element, or null if empty 469 * element returns next element, or throws NSEE if empty 474 assertEquals(i, q.element()); 478 q.element(); 484 * remove removes next element, or throws NSEE if empty 685 * iterator.remove removes current element
|
H A D | ArrayDequeTest.java | 129 * peekFirst() returns element inserted with push 139 * pop() removes next element, or throws NSEE if empty 371 * remove() removes next element, or throws NSEE if empty 406 * peekFirst() returns next element, or null if empty 420 * peek() returns next element, or null if empty 434 * peekLast() returns next element, or null if empty 448 * element() returns first element, or throws NSEE if empty 453 assertEquals(i, q.element()); 457 q.element(); [all...] |
/libcore/luni/src/main/java/javax/security/auth/ |
H A D | Subject.java | 557 // verifies new set element 569 * verifies specified element, checks set state, and security permission 570 * to modify set before adding new element 598 * to the next element even SecurityException was thrown 697 for (SST element : elements) { 698 verifyElement(element); 736 * removing current element
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | DOMConfigurationImpl.java | 50 * element-content-whitespace = true 108 PARAMETERS.put("element-content-whitespace", new FixedParameter(true)); 145 * element-content-whitespace = true 154 // element-content-whitespace is always true 166 // element-content-whitespace is always true 251 * recompute element content whitespace, ID and schema type data. 430 ElementImpl element = (ElementImpl) node; 431 NamedNodeMap attributes = element.getAttributes();
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ReflectionTest.java | 413 private int count(List<?> list, Object element) { argument 416 if (o.equals(element)) {
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | PatternTest.java | 476 for (String element : patterns) { 478 Pattern.compile(element); 497 for (String element : patterns) { 498 Pattern.compile(element); 601 for (String element : neg_patterns) { 603 Pattern.compile(element); 604 fail("PatternSyntaxException was expected: " + element);
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInteger.java | 277 for (byte element : magnitude) { 278 if (element != 0) { 911 * Returns a two element {@code BigInteger} array containing
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | NormalizeTest.java | 62 "element-content-whitespace", "comments", "namespaces" }; 109 assertEquals(true, domConfiguration.getParameter("element-content-whitespace")); 110 assertUnsupported("element-content-whitespace", false); 111 assertSupported("element-content-whitespace", true); 569 private void assertChildren(Element element, String... texts) { argument 571 NodeList nodes = element.getChildNodes();
|
/libcore/luni/src/main/java/java/net/ |
H A D | URLClassLoader.java | 999 String element = tokenizer.nextToken(); 1000 if (!element.isEmpty()) { 1003 URL url = new URL(new URL(file), element);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | CookiesTest.java | 538 private void assertContains(Collection<String> collection, String element) { argument 540 if (c != null && c.equalsIgnoreCase(element)) { 544 fail("No " + element + " in " + collection);
|