Home
last modified time | relevance | path

Searched refs:currentIndex (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractQueueTest.java44 private int currentIndex = -1; in iterator()
47 return size > 0 && currentIndex < size; in iterator()
54 currentIndex++; in iterator()
55 return (E) elements[currentIndex]; in iterator()
59 if (-1 == currentIndex) { in iterator()
62 for (int i = currentIndex; i < size - 1; i++) { in iterator()
/libcore/ojluni/src/main/java/java/text/
DAttributedString.java750 private int currentIndex; field in AttributedString.AttributedStringIterator
766 this.currentIndex = beginIndex; in AttributedStringIterator()
785 …if (currentIndex != that.currentIndex || beginIndex != that.beginIndex || endIndex != that.endInde… in equals()
791 return text.hashCode() ^ currentIndex ^ beginIndex ^ endIndex; in hashCode()
819 if (currentIndex == endIndex) { in current()
822 return charAt(currentIndex); in current()
827 if (currentIndex < endIndex) { in next()
828 return internalSetIndex(currentIndex + 1); in next()
836 if (currentIndex > beginIndex) { in previous()
837 return internalSetIndex(currentIndex - 1); in previous()
[all …]