Home
last modified time | relevance | path

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

12

/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 …]
DArrayDequeTest.java107 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 …]
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()
/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/test/java/util/SequencedCollection/
DSimpleDeque.java155 public E peekFirst() { in peekFirst() method in SimpleDeque
156 return deque.peekFirst(); in peekFirst()
/libcore/ojluni/src/main/java/java/util/
DDeque.java343 E peekFirst(); in peekFirst() method
DReverseOrderDequeView.java232 public E peekFirst() { in peekFirst() method in ReverseOrderDequeView
237 return base.peekFirst(); in peekLast()
DLinkedList.java743 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/
DArrayDequeTest.java323 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()
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/flagged_api/java/util/
DDeque.annotated.java62 public E peekFirst(); in peekFirst() method
DLinkedList.annotated.java88 public E peekFirst() { throw new RuntimeException("Stub!"); } in peekFirst() method in LinkedList
/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.java869 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()
DLinkedBlockingDeque.java545 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/
DLinkedBlockingDeque.java152 public E peekFirst() { in peekFirst() method in LinkedBlockingDeque

12