Home
last modified time | relevance | path

Searched refs:lastRet (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrayList.java850 int lastRet = -1; // index of last element returned; -1 if no such field in ArrayList.Itr
868 return (E) elementData[lastRet = i]; in next()
872 if (lastRet < 0) in remove()
878 ArrayList.this.remove(lastRet); in remove()
879 cursor = lastRet; in remove()
880 lastRet = -1; in remove()
906 lastRet = i - 1; in forEachRemaining()
945 return (E) elementData[lastRet = i]; in previous()
949 if (lastRet < 0) in set()
955 ArrayList.this.set(lastRet, e); in set()
[all …]
DAbstractList.java354 int lastRet = -1; field in AbstractList.Itr
372 lastRet = i; in next()
382 if (lastRet < 0) in remove()
387 AbstractList.this.remove(lastRet); in remove()
388 if (lastRet < cursor) in remove()
390 lastRet = -1; in remove()
417 lastRet = cursor = i; in previous()
434 if (lastRet < 0) in set()
439 AbstractList.this.set(lastRet, e); in set()
452 lastRet = -1; in add()
DArrayDeque.java617 private int lastRet = -1; field in ArrayDeque.DeqIterator
632 lastRet = cursor; in next()
638 if (lastRet < 0) in remove()
640 if (delete(lastRet)) { // if left-shifted, undo increment in next() in remove()
644 lastRet = -1; in remove()
674 private int lastRet = -1; field in ArrayDeque.DescendingIterator
688 lastRet = cursor; in next()
693 if (lastRet < 0) in remove()
695 if (!delete(lastRet)) { in remove()
699 lastRet = -1; in remove()
DVector.java1136 int lastRet = -1; // index of last element returned; -1 if no such field in Itr
1154 return elementData(lastRet = i); in next()
1159 if (lastRet == -1) in remove()
1163 Vector.this.remove(lastRet); in remove()
1168 cursor = lastRet; in remove()
1169 lastRet = -1; in remove()
1193 lastRet = i - 1; in forEachRemaining()
1232 return elementData(lastRet = i); in previous()
1237 if (lastRet == -1) in set()
1241 Vector.this.set(lastRet, e); in set()
[all …]
DPriorityQueue.java499 private int lastRet = -1; field in PriorityQueue.Itr
537 return (E) queue[lastRet = cursor++]; in next()
539 lastRet = -1; in next()
550 if (lastRet != -1) { in remove()
551 E moved = PriorityQueue.this.removeAt(lastRet); in remove()
552 lastRet = -1; in remove()
/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java535 int lastRet; // index of last element, or -1 if no such field in DelayQueue.Itr
538 lastRet = -1; in Itr()
550 lastRet = cursor; in next()
555 if (lastRet < 0) in remove()
557 removeEQ(array[lastRet]); in remove()
558 lastRet = -1; in remove()
DLinkedTransferQueue.java929 private Node lastRet; // last returned node, to support remove field in LinkedTransferQueue.Itr
947 if ((r = lastRet) != null && !r.isMatched()) in advance()
959 this.lastRet = prev; in advance()
1011 final Node lastRet = this.lastRet; in remove() local
1012 if (lastRet == null) in remove()
1014 this.lastRet = null; in remove()
1015 if (lastRet.tryMatchData()) in remove()
1016 unsplice(lastPred, lastRet); in remove()
DPriorityBlockingQueue.java864 int lastRet; // index of last element, or -1 if no such field in PriorityBlockingQueue.Itr
867 lastRet = -1; in Itr()
878 lastRet = cursor; in next()
883 if (lastRet < 0) in remove()
885 removeEQ(array[lastRet]); in remove()
886 lastRet = -1; in remove()
DLinkedBlockingQueue.java764 private Node<E> lastRet; field in LinkedBlockingQueue.Itr
787 lastRet = current; in next()
808 if (lastRet == null) in remove()
812 Node<E> node = lastRet; in remove()
813 lastRet = null; in remove()
DScheduledThreadPoolExecutor.java1297 int lastRet = -1; // index of last element returned; -1 if no such field in ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
1310 lastRet = cursor; in next()
1315 if (lastRet < 0) in remove()
1317 DelayedWorkQueue.this.remove(array[lastRet]); in remove()
1318 lastRet = -1; in remove()
DConcurrentLinkedQueue.java705 private Node<E> lastRet; field in ConcurrentLinkedQueue.Itr
735 lastRet = pred; in next()
752 Node<E> l = lastRet; in remove()
756 lastRet = null; in remove()
DLinkedBlockingDeque.java1036 private Node<E> lastRet; field in LinkedBlockingDeque.AbstractItr
1095 lastRet = next; in next()
1102 Node<E> n = lastRet; in remove()
1105 lastRet = null; in remove()
DConcurrentLinkedDeque.java1374 private Node<E> lastRet; field in ConcurrentLinkedDeque.AbstractItr
1388 lastRet = nextNode; in advance()
1419 Node<E> l = lastRet; in remove()
1423 lastRet = null; in remove()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java252 private int lastRet = -1; // 0xffffffff field in ArrayDeque.DeqIterator
320 private int lastRet = -1; // 0xffffffff field in ArrayDeque.DescendingIterator
DPriorityQueue.java228 private int lastRet = -1; // 0xffffffff field in PriorityQueue.Itr
DVector.java315 int lastRet = -1; // 0xffffffff field in Vector.Itr
DArrayList.java311 int lastRet = -1; // 0xffffffff field in ArrayList.Itr
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java266 int lastRet; field in PriorityBlockingQueue.Itr
DLinkedBlockingDeque.java346 private Node<E> lastRet; field in LinkedBlockingDeque.AbstractItr