Home
last modified time | relevance | path

Searched refs:peekLast (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentLinkedDequeTest.java79 assertEquals((Integer) (n - 1), q.peekLast()); in populatedDeque()
241 assertSame(one, q.peekLast()); in testOffer()
252 assertSame(zero, q.peekLast()); in testOfferFirst()
263 assertSame(one, q.peekLast()); in testOfferLast()
307 assertSame(one, q.peekLast()); in testAdd()
318 assertSame(zero, q.peekLast()); in testAddFirst()
329 assertSame(one, q.peekLast()); in testAddLast()
512 assertEquals(i, q.peekLast()); in testPeekLast()
514 assertTrue(q.peekLast() == null || in testPeekLast()
515 !q.peekLast().equals(i)); in testPeekLast()
[all …]
DArrayDequeTest.java108 assertEquals((Integer) (n - 1), q.peekLast()); in populatedDeque()
270 assertSame(one, q.peekLast()); in testOffer()
281 assertSame(zero, q.peekLast()); in testOfferFirst()
292 assertSame(one, q.peekLast()); in testOfferLast()
336 assertSame(one, q.peekLast()); in testAdd()
347 assertSame(zero, q.peekLast()); in testAddFirst()
358 assertSame(one, q.peekLast()); in testAddLast()
515 assertEquals(i, q.peekLast()); in testPeekLast()
517 assertTrue(q.peekLast() == null || in testPeekLast()
518 !q.peekLast().equals(i)); in testPeekLast()
[all …]
DArrayDeque8Test.java107 assertEquals(e, q.peekLast()); in testHugeCapacity()
112 assertEquals((Integer) 1, q.peekLast()); in testHugeCapacity()
DLinkedListTest.java82 assertEquals((Integer) (n - 1), q.peekLast()); in populatedQueue()
621 assertEquals(i, q.peekLast()); in testPeekLast()
623 assertTrue(q.peekLast() == null || in testPeekLast()
624 !q.peekLast().equals(i)); in testPeekLast()
626 assertNull(q.peekLast()); in testPeekLast()
654 assertNull(q.peekLast()); in testLastElement()
DLinkedBlockingDequeTest.java99 assertEquals((Integer) (n - 1), q.peekLast()); in populatedDeque()
228 assertEquals(i, q.peekLast()); in testPeekLast()
230 assertTrue(q.peekLast() == null || in testPeekLast()
231 !q.peekLast().equals(i)); in testPeekLast()
233 assertNull(q.peekLast()); in testPeekLast()
265 assertNull(q.peekLast()); in testLastElement()
295 assertNull(q.peekLast()); in testRemoveLast()
359 assertSame(four, q.peekLast()); in testAddLast()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentLinkedDequeTest.java207 assertSame(one, q.peekLast()); in testOffer()
218 assertSame(zero, q.peekLast()); in testOfferFirst()
229 assertSame(one, q.peekLast()); in testOfferLast()
273 assertSame(one, q.peekLast()); in testAdd()
284 assertSame(zero, q.peekLast()); in testAddFirst()
295 assertSame(one, q.peekLast()); in testAddLast()
478 assertEquals(i, q.peekLast()); in testPeekLast()
480 assertTrue(q.peekLast() == null || in testPeekLast()
481 !q.peekLast().equals(i)); in testPeekLast()
483 assertNull(q.peekLast()); in testPeekLast()
[all …]
DArrayDequeTest.java203 assertSame(one, q.peekLast()); in testOffer()
214 assertSame(zero, q.peekLast()); in testOfferFirst()
225 assertSame(one, q.peekLast()); in testOfferLast()
269 assertSame(one, q.peekLast()); in testAdd()
280 assertSame(zero, q.peekLast()); in testAddFirst()
291 assertSame(one, q.peekLast()); in testAddLast()
448 assertEquals(i, q.peekLast()); in testPeekLast()
450 assertTrue(q.peekLast() == null || in testPeekLast()
451 !q.peekLast().equals(i)); in testPeekLast()
453 assertNull(q.peekLast()); in testPeekLast()
[all …]
DLinkedListTest.java580 assertEquals(i, q.peekLast()); in testPeekLast()
582 assertTrue(q.peekLast() == null || in testPeekLast()
583 !q.peekLast().equals(i)); in testPeekLast()
585 assertNull(q.peekLast()); in testPeekLast()
613 assertNull(q.peekLast()); in testLastElement()
DLinkedBlockingDequeTest.java194 assertEquals(i, q.peekLast()); in testPeekLast()
196 assertTrue(q.peekLast() == null || in testPeekLast()
197 !q.peekLast().equals(i)); in testPeekLast()
199 assertNull(q.peekLast()); in testPeekLast()
231 assertNull(q.peekLast()); in testLastElement()
261 assertNull(q.peekLast()); in testRemoveLast()
325 assertSame(four, q.peekLast()); in testAddLast()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayDequeTest.java341 assertEquals(testObjThree, testQue.peekLast()); in test_peekLast()
344 assertEquals(testObjTwo, testQue.peekLast()); in test_peekLast()
348 assertNull(testQue.peekLast()); in test_peekLast()
364 assertEquals(testObjOne, testQue.peekLast()); in test_removeFirstOccurrence()
368 assertEquals(testObjOne, testQue.peekLast()); in test_removeFirstOccurrence()
371 assertEquals(testObjThree, testQue.peekLast()); in test_removeFirstOccurrence()
388 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
393 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
396 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
409 assertEquals(testObjThree, testQue.peekLast()); in test_add()
[all …]
DLinkedListTest.java718 assertEquals(testObjOne, testList.peekLast()); in test_removeFirstOccurrence()
722 assertEquals(testObjOne, testList.peekLast()); in test_removeFirstOccurrence()
725 assertEquals(testObjThree, testList.peekLast()); in test_removeFirstOccurrence()
742 assertEquals(testObjThree, testList.peekLast()); in test_removeLastOccurrence()
747 assertEquals(testObjThree, testList.peekLast()); in test_removeLastOccurrence()
750 assertEquals(testObjThree, testList.peekLast()); in test_removeLastOccurrence()
935 assertEquals(testObjThree, testList.peekLast()); in test_peekLast()
938 assertEquals(testObjTwo, testList.peekLast()); in test_peekLast()
942 assertNull(testList.peekLast()); in test_peekLast()
/libcore/ojluni/src/main/java/java/util/
DReverseOrderDequeView.java229 return base.peekLast(); in peek()
233 return base.peekLast(); in peekFirst()
236 public E peekLast() { in peekLast() method in ReverseOrderDequeView
DDeque.java351 E peekLast(); in peekLast() method
DLinkedList.java756 public E peekLast() { in peekLast() method in LinkedList
1419 public E peekLast() { in peekLast() method in LinkedList.ReverseOrderLinkedListView
1420 return rdeque.peekLast(); in peekLast()
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleDeque.java159 public E peekLast() { in peekLast() method in SimpleDeque
160 return deque.peekLast(); in peekLast()
/libcore/ojluni/annotations/flagged_api/java/util/
DDeque.annotated.java64 public E peekLast(); in peekLast() method
DLinkedList.annotated.java90 public E peekLast() { throw new RuntimeException("Stub!"); } in peekLast() method in LinkedList
/libcore/ojluni/annotations/sdk/nullability/java/util/
DDeque.annotated.java65 @libcore.util.Nullable public E peekLast(); in peekLast() method
DArrayDeque.annotated.java70 @libcore.util.Nullable public E peekLast() { throw new RuntimeException("Stub!"); } in peekLast() method in ArrayDeque
DLinkedList.annotated.java91 @libcore.util.Nullable public E peekLast() { throw new RuntimeException("Stub!"); } in peekLast() method in LinkedList
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java107 public E peekLast() { in peekLast() method in ArrayDeque
DLinkedList.java201 public E peekLast() { in peekLast() method in LinkedList
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DLinkedBlockingDeque.java156 public E peekLast() { in peekLast() method in LinkedBlockingDeque
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java906 check(deq.peekLast() == null); in testQueueAddRemove()
909 check(deq.peekLast() != e); in testQueueAddRemove()
921 check(deq.peekLast() == e); in testQueueAddRemove()
949 check(deq.peekLast() == null); in testQueueAddRemove()
952 check(deq.peekLast() != e); in testQueueAddRemove()
1000 check(deq.peekLast() == null); in testQueueAddRemove()
/libcore/ojluni/src/main/java/java/util/concurrent/
DLinkedBlockingDeque.java554 E x = peekLast(); in getLast()
569 public E peekLast() { in peekLast() method in LinkedBlockingDeque

12