Home
last modified time | relevance | path

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

/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 …]
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()
DCollection8Test.java174 assertNull(d.peekLast());
/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.java338 assertEquals(testObjThree, testQue.peekLast()); in test_peekLast()
341 assertEquals(testObjTwo, testQue.peekLast()); in test_peekLast()
345 assertNull(testQue.peekLast()); in test_peekLast()
361 assertEquals(testObjOne, testQue.peekLast()); in test_removeFirstOccurrence()
365 assertEquals(testObjOne, testQue.peekLast()); in test_removeFirstOccurrence()
368 assertEquals(testObjThree, testQue.peekLast()); in test_removeFirstOccurrence()
385 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
390 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
393 assertEquals(testObjThree, testQue.peekLast()); in test_removeLastOccurrence()
406 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/
DDeque.java341 E peekLast(); in peekLast() method
DArrayDeque.java338 public E peekLast() { in peekLast() method in ArrayDeque
DLinkedList.java745 public E peekLast() { 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/main/java/java/util/concurrent/
DLinkedBlockingDeque.java561 E x = peekLast(); in getLast()
576 public E peekLast() { in peekLast() method in LinkedBlockingDeque
DConcurrentLinkedDeque.java911 public E peekLast() { in peekLast() method in ConcurrentLinkedDeque
931 return screenNullResult(peekLast()); in getLast()