/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentLinkedDequeTest.java | 131 * peekFirst() returns element inserted with push 141 * pop() removes first element, or throws NSEE if empty 384 * peek() returns next element, or null if empty 398 * element() returns first element, or throws NSEE if empty 403 assertEquals(i, q.element()); 407 q.element(); 413 * remove() removes next element, or throws NSEE if empty 448 * peekFirst() returns next element, or null if empty 462 * peekLast() returns next element, o [all...] |
H A D | DelayQueueTest.java | 437 * peek returns next element, or null if empty 453 * element returns next element, or throws NSEE if empty 458 assertEquals(new PDelay(i), ((PDelay)q.element())); 462 q.element(); 468 * remove removes next element, or throws NSEE if empty 609 * iterator.remove removes current element
|
H A D | LinkedBlockingQueueTest.java | 444 * peek returns next element, or null if empty 458 * element returns next element, or throws NSEE if empty 463 assertEquals(i, q.element()); 467 q.element(); 473 * remove removes next element, or throws NSEE if empty 621 * iterator.remove removes current element
|
H A D | LinkedTransferQueueTest.java | 316 * peek returns next element, or null if empty 331 * element returns next element, or throws NoSuchElementException if empty 336 assertEquals(i, (int) q.element()); 340 q.element(); 347 * remove removes next element, or throws NoSuchElementException if empty 501 * iterator.remove() removes current element 737 * transfer waits until a poll occurs. The transfered element 795 * thread returns the element 817 * transfer waits until a take occurs. The transfered element [all...] |
H A D | JSR166TestCase.java | 1068 q.element();
|
H A D | SynchronousQueueTest.java | 279 * element() throws NoSuchElementException if no active putter 286 q.element(); 377 * element (if present) nulled out
|
H A D | LinkedBlockingDequeTest.java | 134 * peekFirst returns next element, or null if empty 148 * peek returns next element, or null if empty 162 * peekLast returns next element, or null if empty 176 * getFirst() returns first element, or throws NSEE if empty 192 * getLast() returns last element, or throws NSEE if empty 208 * removeFirst() removes first element, or throws NSEE if empty 223 * removeLast() removes last element, or throws NSEE if empty 238 * remove removes next element, or throws NSEE if empty 282 * peekFirst returns element inserted with addFirst 292 * peekLast returns element inserte [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | LocaleTest.java | 178 private static void assertOnce(Locale element, Locale[] array) { argument 181 if (l.equals(element)) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | LinkedBlockingDeque.java | 183 * Links node as first element, or returns false if full. 202 * Links node as last element, or returns false if full. 221 * Removes and returns first element, or null if empty. 243 * Removes and returns last element, or null if empty. 591 * Inserts the specified element at the end of this deque unless it would 597 * @throws IllegalStateException if the element cannot be added at this 599 * @throws NullPointerException if the specified element is null 607 * @throws NullPointerException if the specified element is null 666 public E element() { method in class:LinkedBlockingDeque 681 * an element wil [all...] |
H A D | ConcurrentLinkedDeque.java | 56 * actions subsequent to the access or removal of that element from 100 * A new element is added atomically by CASing the null prev or 102 * containing the element. The element's node atomically becomes 131 * the element from the collection, and makes the containing node 169 * the same element twice, but we don't guarantee whether a 204 * We believe (without full proof) that all single-element deque 322 * Links e as first element. 343 // for e to become an element of this deque, 355 * Links e as last element 1000 public E element() { return getFirst(); } method in class:ConcurrentLinkedDeque [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketTest.java | 1429 for (StackTraceElement element : elements) { 1430 if ("read".equals(element.getMethodName())) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | LinkedListTest.java | 319 assertTrue("Returned false for valid element", ll 321 assertTrue("Returned false for equal element", ll.contains(new Integer( 323 assertTrue("Returned true for invalid element", !ll 335 assertTrue("Returned incorrect element", ll.get(22) == objArray[22]); 351 assertEquals("Returned incorrect first element", ll.peek(), objArray[0]); 352 assertEquals("Peek remove the head (first element) of this list", ll.getFirst(), objArray[0]); 360 assertTrue("Returned incorrect first element", ll.getFirst().equals( 377 assertTrue("Returned incorrect first element", ll.getLast().equals( 433 assertTrue("First element claimed to have a previous", !i2 436 assertTrue("Last element claime [all...] |