Home
last modified time | relevance | path

Searched refs:removeFirst (Results 1 – 25 of 53) sorted by relevance

123

/libcore/luni/src/test/androidsdk34/src/libcore/android34/java/util/
DListTest.java178 public boolean removeFirst() { in removeFirst() method in ListTest.MyList
211 assertTrue(myList.removeFirst()); in testAddFirst()
213 assertTrue(myList.removeFirst()); in testAddFirst()
214 assertTrue(myList.removeFirst()); in testAddFirst()
215 assertFalse(myList.removeFirst()); // False because the list is empty. in testAddFirst()
229 assertFalse(myList.removeFirst()); // False because the list is empty. in testAddLast()
/libcore/ojluni/src/main/java/java/util/
DLinkedHashSet.java283 public E removeFirst() { in removeFirst() method in LinkedHashSet
284 return map().sequencedKeySet().removeFirst(); in removeFirst()
315 public E removeFirst() { return LinkedHashSet.this.removeLast(); } in reversed() method in LinkedHashSet.ReverseLinkedHashSetView
316 public E removeLast() { return LinkedHashSet.this.removeFirst(); } in reversed()
DSequencedCollection.java175 default E removeFirst() { in removeFirst() method
DDeque.java288 E removeFirst(); in removeFirst() method
DNavigableSet.java335 default E removeFirst() { in removeFirst() method
DSortedSet.java335 default E removeFirst() {
DReverseOrderDequeView.java264 public E removeFirst() { in removeFirst() method in ReverseOrderDequeView
269 return base.removeFirst(); in removeLast()
DLinkedList.java278 public E removeFirst() { in removeFirst() method in LinkedList
696 return removeFirst(); in remove()
812 return removeFirst(); in pop()
1519 public E removeFirst() { in removeFirst() method in LinkedList.ReverseOrderLinkedListView
1520 return rdeque.removeFirst(); in removeFirst()
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleDeque.java131 public E removeFirst() { in removeFirst() method in SimpleDeque
132 return deque.removeFirst(); in removeFirst()
DBasicMap.java524 assertThrows(UOE, () -> view.removeFirst()); in checkUnmodifiableSeqView()
529 assertThrows(UOE, () -> rview.removeFirst()); in checkUnmodifiableSeqView()
826 var act = callLast(mode) ? keySet.removeLast() : keySet.removeFirst(); in testKeySetRemoves()
841 var act = callLast(mode) ? values.removeLast() : values.removeFirst(); in testValuesRemoves()
856 var act = callLast(mode) ? entrySet.removeLast() : entrySet.removeFirst(); in testEntrySetRemoves()
872 assertThrows(NSEE, () -> keySet.removeFirst()); in testEmptyKeySetRemoves()
888 assertThrows(NSEE, () -> values.removeFirst()); in testEmptyValuesRemoves()
903 assertThrows(NSEE, () -> entrySet.removeFirst()); in testEmptyEntrySetRemoves()
DBasic.java424 assertThrows(UOE, () -> seq.removeFirst()); in checkUnmodifiable1()
559 var act = seq.removeFirst(); in testRemoveFirst()
568 var act = seq.reversed().removeFirst(); in testRemoveFirstRev()
593 assertThrows(NoSuchElementException.class, () -> seq.removeFirst()); in testEmptyRemoveFirst()
594 assertThrows(NoSuchElementException.class, () -> seq.reversed().removeFirst()); in testEmptyRemoveFirst()
708 var act = sub.removeFirst(); in testSubListRemoveFirst()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DArrayDequeTest.java92 assertEquals((Integer) 42, q.removeFirst()); in populatedDeque()
174 q.removeFirst(); in testEmpty()
175 q.removeFirst(); in testEmpty()
186 q.removeFirst(); in testSize()
575 assertEquals(i, q.removeFirst()); in testRemoveFirst()
578 q.removeFirst(); in testRemoveFirst()
698 p.removeFirst(); in testRetainAll()
712 assertFalse(q.contains(p.removeFirst())); in testRemoveAll()
/libcore/ojluni/annotations/flagged_api/java/util/
DSortedSet.annotated.java55 public default E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method
DSequencedCollection.annotated.java49 public default E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method
DDeque.annotated.java50 public E removeFirst(); in removeFirst() method
DNavigableSet.annotated.java77 public default E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method
DLinkedHashSet.annotated.java58 public E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method in LinkedHashSet
DLinkedList.annotated.java40 public E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method in LinkedList
DArrayList.annotated.java82 public E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method in ArrayList
/libcore/jsr166-tests/src/test/java/jsr166/
DArrayDequeTest.java107 q.removeFirst(); in testEmpty()
108 q.removeFirst(); in testEmpty()
119 q.removeFirst(); in testSize()
508 assertEquals(i, q.removeFirst()); in testRemoveFirst()
511 q.removeFirst(); in testRemoveFirst()
613 p.removeFirst(); in testRetainAll()
627 assertFalse(q.contains(p.removeFirst())); in testRemoveAll()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java62 return (Runnable) taskQueue.removeFirst(); in getTask()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUtil.java201 ByteBuffer removeFirst() { in removeFirst() method in Util.BufferCache
233 buf = cache.removeFirst(); in getTemporaryDirectBuffer()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DDeque.annotated.java51 @libcore.util.NullFromTypeParam public E removeFirst(); in removeFirst() method
DArrayDeque.annotated.java56 @libcore.util.NullFromTypeParam public E removeFirst() { throw new RuntimeException("Stub!"); } in removeFirst() method in ArrayDeque
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java79 public E removeFirst() { in removeFirst() method in ArrayDeque

123