The indexOf method of the UnsignedIntRanges Class contains the following signatures:
indexOf(int find, int fromRange)
indexOf(int find)
Searches from a starting index for a range pair containing a given a number.
public int indexOf(int find, int fromRange);
Returns the index of the range pair that includes the number, if found; otherwise, returns -1.
find | The number to search for. |
fromRange | The index of the range pair to start the search from. |
indexOf(int,int) in IntRanges.
Searches from the beginning for a range pair containing a given a number.
public int indexOf(int find);
Returns the index of the range pair that includes the number, if found; otherwise, returns -1.
find | The number to search for. |