/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 | ArrayDequeTest.java | 107 assertEquals((Integer) 0, q.peekFirst()); in populatedDeque() 212 assertSame(four, q.peekFirst()); in testPush() 269 assertSame(zero, q.peekFirst()); in testOffer() 280 assertSame(one, q.peekFirst()); in testOfferFirst() 291 assertSame(zero, q.peekFirst()); in testOfferLast() 335 assertSame(zero, q.peekFirst()); in testAdd() 346 assertSame(one, q.peekFirst()); in testAddFirst() 357 assertSame(zero, q.peekFirst()); in testAddLast() 487 assertEquals(i, q.peekFirst()); in testPeekFirst() 489 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()
|
/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/test/java/util/SequencedCollection/ |
D | SimpleDeque.java | 155 public E peekFirst() { in peekFirst() method in SimpleDeque 156 return deque.peekFirst(); in peekFirst()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Deque.java | 343 E peekFirst(); in peekFirst() method
|
D | ReverseOrderDequeView.java | 232 public E peekFirst() { in peekFirst() method in ReverseOrderDequeView 237 return base.peekFirst(); in peekLast()
|
D | LinkedList.java | 743 public E peekFirst() { in peekFirst() method in LinkedList 1423 public E peekFirst() { in peekFirst() method in LinkedList.ReverseOrderLinkedListView 1424 return rdeque.peekFirst(); in peekFirst()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArrayDequeTest.java | 323 assertEquals(testObjOne, testQue.peekFirst()); in test_peekFirst() 326 assertEquals(testObjTwo, testQue.peekFirst()); in test_peekFirst() 330 assertEquals(null, testQue.peekFirst()); in test_peekFirst() 363 assertEquals(testObjTwo, testQue.peekFirst()); in test_removeFirstOccurrence() 387 assertEquals(testObjOne, testQue.peekFirst()); in test_removeLastOccurrence() 392 assertEquals(testObjOne, testQue.peekFirst()); in test_removeLastOccurrence() 408 assertEquals(testObjOne, testQue.peekFirst()); in test_add() 426 assertEquals(testObjOne, testQue.peekFirst()); in test_offer() 792 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/flagged_api/java/util/ |
D | Deque.annotated.java | 62 public E peekFirst(); in peekFirst() method
|
D | LinkedList.annotated.java | 88 public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in LinkedList
|
/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 | 869 public E peekFirst() { in peekFirst() method in ConcurrentLinkedDeque 903 return screenNullResult(peekFirst()); in getFirst() 995 public E peek() { return peekFirst(); } in peek() 1094 return peekFirst() == null; in isEmpty()
|
D | LinkedBlockingDeque.java | 545 E x = peekFirst(); in getFirst() 559 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque 695 return peekFirst(); in peek()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingDeque.java | 152 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque
|