Searched refs:nextIndex (Results 1 - 16 of 16) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DListIterator.java78 public int nextIndex(); method in interface:ListIterator
H A DAbstractSequentialList.java44 int next = it.nextIndex();
48 return next != it.nextIndex();
H A DAbstractList.java118 public int nextIndex() { method in class:AbstractList.FullListIterator
192 return iterator.nextIndex() < end;
200 if (iterator.nextIndex() < end) {
206 public int nextIndex() { method in class:AbstractList.SubAbstractList.SubAbstractListIterator
207 return iterator.nextIndex() - start;
586 return it.nextIndex();
592 return it.nextIndex();
H A DHashtable.java712 int nextIndex; field in class:Hashtable.HashIterator
720 while (next == null && nextIndex < tab.length) {
721 next = tab[nextIndex++];
739 while (next == null && nextIndex < tab.length) {
740 next = tab[nextIndex++];
753 while (next == null && nextIndex < tab.length) {
754 next = tab[nextIndex++];
H A DHashMap.java770 int nextIndex; field in class:HashMap.HashIterator
779 while (next == null && nextIndex < tab.length) {
780 next = tab[nextIndex++];
799 while (next == null && nextIndex < tab.length) {
800 next = tab[nextIndex++];
H A DCollections.java1089 @Override public int nextIndex() {
1090 return iterator.nextIndex();
2136 // starting from listIt.nextIndex().
2138 return listIt.nextIndex();
2954 @Override public int nextIndex() { method in class:Collections.CheckedListIterator
2955 return i.nextIndex();
H A DLinkedList.java127 public int nextIndex() { method in class:LinkedList.LinkIterator
/libcore/luni/src/main/java/java/util/concurrent/
H A DArrayBlockingQueue.java984 private int nextIndex; field in class:ArrayBlockingQueue.Itr
1019 nextIndex = NONE;
1024 nextItem = itemAt(nextIndex = takeIndex);
1035 // assert nextIndex >= 0;
1095 if (invalidated(nextIndex, prevTakeIndex, dequeues, len))
1096 nextIndex = REMOVED;
1100 if (cursor < 0 && nextIndex < 0 && lastRet < 0)
1112 * nextIndex < 0 && lastRet < 0) or as a special exception, when
1120 // assert nextIndex < 0;
1150 // assert nextIndex
[all...]
H A DCopyOnWriteArrayList.java726 public int nextIndex() { method in class:CopyOnWriteArrayList.CowIterator
/libcore/support/src/test/java/tests/support/
H A DSupport_ListTest.java147 assertTrue("list iterator nextIndex(): " + i, li.nextIndex() == i);
167 assertTrue("list iterator nextIndex()2: " + i, li.nextIndex() == i);
191 assertEquals("list iterator add(), nextIndex()", 1, li.nextIndex());
200 assertEquals("list iterator add(), nextIndex()2", 2, li.nextIndex());
207 assertEquals("list iterator remove(), nextIndex()", 2, li.nextIndex());
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustManagerImpl.java327 for (int nextIndex = currIndex + 1; nextIndex < chain.length; nextIndex++) {
328 if (chain[currIndex].getIssuerDN().equals(chain[nextIndex].getSubjectDN())) {
331 if (nextIndex != currIndex + 1) {
336 X509Certificate tempCertificate = chain[nextIndex];
337 chain[nextIndex] = chain[currIndex + 1];
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java226 assertEquals(5, i.nextIndex());
229 assertEquals(4, i.nextIndex());
234 assertEquals(3, i.nextIndex());
239 assertEquals(2, i.nextIndex());
244 assertEquals(1, i.nextIndex());
249 assertEquals(0, i.nextIndex());
/libcore/luni/src/test/java/tests/api/java/util/
H A DAbstractSequentialListTest.java87 public int nextIndex() { method in class:AbstractSequentialListTest.Mock_unsupportedListIterator
126 public int nextIndex() { method in class:AbstractSequentialListTest.Mock_ListIterator
329 public int nextIndex() {
444 public int nextIndex() {
517 public int nextIndex() {
H A DLinkedListTest.java372 i2.nextIndex() == n + 1);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldListIteratorTest.java76 public int nextIndex() { method in class:OldListIteratorTest.Mock_ListIterator
161 assertTrue(objArray[i].equals(l.nextIndex()));
H A DCollectionsTest.java74 assertEquals(0, i.nextIndex());

Completed in 313 milliseconds