public interface IndexRangeSeek extends IndexRange
It can be navigated to find where indexes are with nextIndex(int)
, previousIndex(int)
etc.
Modifier and Type | Method and Description |
---|---|
int |
nextIndex(int index)
Finds the next index in the range after
index . |
int |
previousEqualIndex(int index)
Finds the previous index in the range before
index , or returns index
itself if it's a valid index. |
int |
previousIndex(int index)
Finds the previous index in the range before
index . |
getMaximumIndex, getMinimumIndex
int nextIndex(int index)
index
.index
- the base index, for which a next index is to be found.index
or -1 if none exists.int previousIndex(int index)
index
.index
- the base index, for which a previous index is to be found.index
or -1 if none exists.int previousEqualIndex(int index)
index
, or returns index
itself if it's a valid index.index
- the base index, for which a previous (or equal) index is to be found.index
or -1 if none exists.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.