// Make sure it's still valid.
ensureIndexValidity(this.currentIndex);
} else {
// Else we need to increment everything, including the currently
// inactive indexes!
ComparableIntPointerIterator it;
for (int i = 0; i < this.indexesSize; i++) {
// Any iterator other than the current one needs to be
// incremented
// until it's pointing at something that's greater than the
// current
// element.
if (i != this.currentIndex) {
it = this.indexes[i];
// If the iterator we're considering is not valid, we
// set it to the
// first element. This should be it for this iterator...
if (!it.isValid()) {
it.moveToFirst();
}
// while (it.isValid() &&
// (it.compareTo(indexes[this.currentIndex]) < 0)) {
// Increment the iterator while it is valid and pointing
// at something
// smaller than the current element.
while (it.isValid()
&& (this.iteratorComparator
.compare(it.get(), this.indexes[this.currentIndex].get()) < 0)) {
it.inc();
}
}
}
// Increment the current index.
this.indexes[this.currentIndex].inc();