/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentLinkedDequeTest.java | 78 assertEquals((Integer) 0, q.peekFirst()); in populatedDeque() 183 assertSame(four, q.peekFirst()); in testPush() 240 assertSame(zero, q.peekFirst()); in testOffer() 251 assertSame(one, q.peekFirst()); in testOfferFirst() 262 assertSame(zero, q.peekFirst()); in testOfferLast() 306 assertSame(zero, q.peekFirst()); in testAdd() 317 assertSame(one, q.peekFirst()); in testAddFirst() 328 assertSame(zero, q.peekFirst()); in testAddLast() 498 assertEquals(i, q.peekFirst()); in testPeekFirst() 500 assertTrue(q.peekFirst() == null || in testPeekFirst() [all …]
|
D | ArrayDeque8Test.java | 106 assertEquals(e, q.peekFirst()); in testHugeCapacity() 111 assertEquals((Integer) 0, q.peekFirst()); in testHugeCapacity()
|
D | LinkedListTest.java | 81 assertEquals((Integer) 0, q.peekFirst()); in populatedQueue() 555 assertSame(four, q.peekFirst()); in testPush() 607 assertEquals(i, q.peekFirst()); in testPeekFirst() 609 assertTrue(q.peekFirst() == null || in testPeekFirst() 610 !q.peekFirst().equals(i)); in testPeekFirst() 612 assertNull(q.peekFirst()); in testPeekFirst()
|
D | LinkedBlockingDequeTest.java | 98 assertEquals((Integer) 0, q.peekFirst()); in populatedDeque() 200 assertEquals(i, q.peekFirst()); in testPeekFirst() 202 assertTrue(q.peekFirst() == null || in testPeekFirst() 203 !q.peekFirst().equals(i)); in testPeekFirst() 205 assertNull(q.peekFirst()); in testPeekFirst() 249 assertNull(q.peekFirst()); in testFirstElement() 280 assertNull(q.peekFirst()); in testRemoveFirst() 349 assertSame(four, q.peekFirst()); in testAddFirst() 496 assertSame(four, q.peekFirst()); in testPushWithPeek()
|
D | Collection8Test.java | 173 assertNull(d.peekFirst());
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentLinkedDequeTest.java | 149 assertSame(four, q.peekFirst()); in testPush() 206 assertSame(zero, q.peekFirst()); in testOffer() 217 assertSame(one, q.peekFirst()); in testOfferFirst() 228 assertSame(zero, q.peekFirst()); in testOfferLast() 272 assertSame(zero, q.peekFirst()); in testAdd() 283 assertSame(one, q.peekFirst()); in testAddFirst() 294 assertSame(zero, q.peekFirst()); in testAddLast() 464 assertEquals(i, q.peekFirst()); in testPeekFirst() 466 assertTrue(q.peekFirst() == null || in testPeekFirst() 467 !q.peekFirst().equals(i)); in testPeekFirst() [all …]
|
D | ArrayDequeTest.java | 145 assertSame(four, q.peekFirst()); in testPush() 202 assertSame(zero, q.peekFirst()); in testOffer() 213 assertSame(one, q.peekFirst()); in testOfferFirst() 224 assertSame(zero, q.peekFirst()); in testOfferLast() 268 assertSame(zero, q.peekFirst()); in testAdd() 279 assertSame(one, q.peekFirst()); in testAddFirst() 290 assertSame(zero, q.peekFirst()); in testAddLast() 420 assertEquals(i, q.peekFirst()); in testPeekFirst() 422 assertTrue(q.peekFirst() == null || in testPeekFirst() 423 !q.peekFirst().equals(i)); in testPeekFirst() [all …]
|
D | LinkedListTest.java | 514 assertSame(four, q.peekFirst()); in testPush() 566 assertEquals(i, q.peekFirst()); in testPeekFirst() 568 assertTrue(q.peekFirst() == null || in testPeekFirst() 569 !q.peekFirst().equals(i)); in testPeekFirst() 571 assertNull(q.peekFirst()); in testPeekFirst()
|
D | LinkedBlockingDequeTest.java | 166 assertEquals(i, q.peekFirst()); in testPeekFirst() 168 assertTrue(q.peekFirst() == null || in testPeekFirst() 169 !q.peekFirst().equals(i)); in testPeekFirst() 171 assertNull(q.peekFirst()); in testPeekFirst() 215 assertNull(q.peekFirst()); in testFirstElement() 246 assertNull(q.peekFirst()); in testRemoveFirst() 315 assertSame(four, q.peekFirst()); in testAddFirst() 462 assertSame(four, q.peekFirst()); in testPushWithPeek()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Deque.java | 333 E peekFirst(); in peekFirst() method
|
D | ArrayDeque.java | 332 public E peekFirst() { in peekFirst() method in ArrayDeque 476 return peekFirst(); in peek()
|
D | LinkedList.java | 732 public E peekFirst() { in peekFirst() method in LinkedList
|
D | Collections.java | 5591 public E peek() { return q.peekFirst(); }
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArrayDequeTest.java | 320 assertEquals(testObjOne, testQue.peekFirst()); in test_peekFirst() 323 assertEquals(testObjTwo, testQue.peekFirst()); in test_peekFirst() 327 assertEquals(null, testQue.peekFirst()); in test_peekFirst() 360 assertEquals(testObjTwo, testQue.peekFirst()); in test_removeFirstOccurrence() 384 assertEquals(testObjOne, testQue.peekFirst()); in test_removeLastOccurrence() 389 assertEquals(testObjOne, testQue.peekFirst()); in test_removeLastOccurrence() 405 assertEquals(testObjOne, testQue.peekFirst()); in test_add() 423 assertEquals(testObjOne, testQue.peekFirst()); in test_offer() 793 assertEquals(testObjTwo, testQue.peekFirst()); in test_remove_LObject()
|
D | LinkedListTest.java | 717 assertEquals(testObjTwo, testList.peekFirst()); in test_removeFirstOccurrence() 741 assertEquals(testObjOne, testList.peekFirst()); in test_removeLastOccurrence() 746 assertEquals(testObjOne, testList.peekFirst()); in test_removeLastOccurrence() 917 assertEquals(testObjOne, testList.peekFirst()); in test_peekFirst() 920 assertEquals(testObjTwo, testList.peekFirst()); in test_peekFirst() 924 assertEquals(null, testList.peekFirst()); in test_peekFirst()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Deque.annotated.java | 63 @libcore.util.Nullable public E peekFirst(); in peekFirst() method
|
D | ArrayDeque.annotated.java | 68 @libcore.util.Nullable public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in ArrayDeque
|
D | LinkedList.annotated.java | 89 @libcore.util.Nullable public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in LinkedList
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | ArrayDeque.java | 103 public E peekFirst() { in peekFirst() method in ArrayDeque
|
D | LinkedList.java | 197 public E peekFirst() { in peekFirst() method in LinkedList
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentLinkedDeque.java | 902 public E peekFirst() { in peekFirst() method in ConcurrentLinkedDeque 924 return screenNullResult(peekFirst()); in getFirst() 996 public E peek() { return peekFirst(); } in peek() 1091 return peekFirst() == null; in isEmpty()
|
D | LinkedBlockingDeque.java | 552 E x = peekFirst(); in getFirst() 566 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque 702 return peekFirst(); in peek()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingDeque.java | 152 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque
|