Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrayDeque.java605 private int cursor = head; field in ArrayDeque.DeqIterator
620 return cursor != fence; in hasNext()
624 if (cursor == fence) in next()
627 E result = (E) elements[cursor]; in next()
632 lastRet = cursor; in next()
633 cursor = (cursor + 1) & (elements.length - 1); in next()
641 cursor = (cursor - 1) & (elements.length - 1); in remove()
651 int m = a.length - 1, f = fence, i = cursor; in forEachRemaining()
652 cursor = f; in forEachRemaining()
672 private int cursor = tail; field in ArrayDeque.DescendingIterator
[all …]
DArrayList.java849 int cursor; // index of next element to return field in ArrayList.Itr
854 return cursor < limit; in hasNext()
861 int i = cursor; in next()
867 cursor = i + 1; in next()
879 cursor = lastRet; in remove()
893 int i = cursor; in forEachRemaining()
905 cursor = i; in forEachRemaining()
919 cursor = index; in ListItr()
923 return cursor != 0; in hasPrevious()
927 return cursor; in nextIndex()
[all …]
DAbstractList.java347 int cursor = 0; field in AbstractList.Itr
364 return cursor != size(); in hasNext()
370 int i = cursor; in next()
373 cursor = i + 1; in next()
388 if (lastRet < cursor) in remove()
389 cursor--; in remove()
405 cursor = index; in ListItr()
409 return cursor != 0; in hasPrevious()
415 int i = cursor - 1; in previous()
417 lastRet = cursor = i; in previous()
[all …]
DVector.java1135 int cursor; // index of next element to return field in Itr
1142 return cursor < limit; in hasNext()
1148 int i = cursor; in next()
1153 cursor = i + 1; in next()
1168 cursor = lastRet; in remove()
1179 int i = cursor; in forEachRemaining()
1192 cursor = i; in forEachRemaining()
1210 cursor = index; in ListItr()
1214 return cursor != 0; in hasPrevious()
1218 return cursor; in nextIndex()
[all …]
DImmutableCollections.java218 private int cursor; field in ImmutableCollections.ListItr
223 this.cursor = 0; in ListItr()
230 this.cursor = index; in ListItr()
235 return cursor != size; in hasNext()
240 int i = cursor; in next()
242 cursor = i + 1; in next()
257 return cursor != 0; in hasPrevious()
265 int i = cursor - 1; in previous()
267 cursor = i; in previous()
278 return cursor; in nextIndex()
[all …]
DPriorityQueue.java492 private int cursor; field in PriorityQueue.Itr
528 return cursor < size || in hasNext()
536 if (cursor < size) in next()
537 return (E) queue[lastRet = cursor++]; in next()
554 cursor--; in remove()
/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java534 int cursor; // index of next element to return field in DelayQueue.Itr
543 return cursor < array.length; in hasNext()
548 if (cursor >= array.length) in next()
550 lastRet = cursor; in next()
551 return (E)array[cursor++]; in next()
DCopyOnWriteArrayList.java1063 private int cursor; field in CopyOnWriteArrayList.COWIterator
1066 cursor = initialCursor; in COWIterator()
1071 return cursor < snapshot.length; in hasNext()
1075 return cursor > 0; in hasPrevious()
1082 return (E) snapshot[cursor++]; in next()
1089 return (E) snapshot[--cursor]; in previous()
1093 return cursor; in nextIndex()
1097 return cursor-1; in previousIndex()
1132 for (int i = cursor; i < size; i++) { in forEachRemaining()
1135 cursor = size; in forEachRemaining()
DPriorityBlockingQueue.java863 int cursor; // index of next element to return field in PriorityBlockingQueue.Itr
872 return cursor < array.length; in hasNext()
876 if (cursor >= array.length) in next()
878 lastRet = cursor; in next()
879 return (E)array[cursor++]; in next()
DScheduledThreadPoolExecutor.java1296 int cursor; // index of next element to return; initially 0 field in ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
1304 return cursor < array.length; in hasNext()
1308 if (cursor >= array.length) in next()
1310 lastRet = cursor; in next()
1311 return array[cursor++]; in next()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java248 private int cursor; field in ArrayDeque.DeqIterator
316 private int cursor; field in ArrayDeque.DescendingIterator
DPriorityQueue.java222 private int cursor; field in PriorityQueue.Itr
DVector.java311 int cursor; field in Vector.Itr
DArrayList.java307 int cursor; field in ArrayList.Itr
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java418 int cursor = 0, numDigits; in BigInteger() local
435 cursor = 1; in BigInteger()
440 cursor = 1; in BigInteger()
442 if (cursor == len) in BigInteger()
446 while (cursor < len && in BigInteger()
447 Character.digit(val.charAt(cursor), radix) == 0) { in BigInteger()
448 cursor++; in BigInteger()
451 if (cursor == len) { in BigInteger()
457 numDigits = len - cursor; in BigInteger()
473 String group = val.substring(cursor, cursor += firstGroupLen); in BigInteger()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java264 int cursor; field in PriorityBlockingQueue.Itr
DCopyOnWriteArrayList.java322 private int cursor; field in CopyOnWriteArrayList.COWIterator
/libcore/expectations/
Dknownfailures.txt595 description: "no exception is thrown when moving cursor backwards on forward only statement",
638 …n: "Second block first assertion fails. Is Last should evaluate true if the row on which the cursor