Home
last modified time | relevance | path

Searched refs:peekFirst (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentLinkedDequeTest.java78 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 …]
DArrayDeque8Test.java106 assertEquals(e, q.peekFirst()); in testHugeCapacity()
111 assertEquals((Integer) 0, q.peekFirst()); in testHugeCapacity()
DLinkedListTest.java81 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()
DLinkedBlockingDequeTest.java98 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()
DCollection8Test.java173 assertNull(d.peekFirst());
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentLinkedDequeTest.java149 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 …]
DArrayDequeTest.java145 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 …]
DLinkedListTest.java514 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()
DLinkedBlockingDequeTest.java166 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/
DDeque.java333 E peekFirst(); in peekFirst() method
DArrayDeque.java332 public E peekFirst() { in peekFirst() method in ArrayDeque
476 return peekFirst(); in peek()
DLinkedList.java732 public E peekFirst() { in peekFirst() method in LinkedList
DCollections.java5591 public E peek() { return q.peekFirst(); }
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayDequeTest.java320 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()
DLinkedListTest.java717 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/
DDeque.annotated.java63 @libcore.util.Nullable public E peekFirst(); in peekFirst() method
DArrayDeque.annotated.java68 @libcore.util.Nullable public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in ArrayDeque
DLinkedList.annotated.java89 @libcore.util.Nullable public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in LinkedList
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java103 public E peekFirst() { in peekFirst() method in ArrayDeque
DLinkedList.java197 public E peekFirst() { in peekFirst() method in LinkedList
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentLinkedDeque.java902 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()
DLinkedBlockingDeque.java552 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/
DLinkedBlockingDeque.java152 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque