The contains method of the IntRanges Class contains the following signatures:
contains(int find)
contains(int s, int e)
Searches from the beginning of a range for a given number.
public boolean contains(int find);
Throws IllegalArgumentException if the parameter is invalid.
Returns true if the number was found; otherwise, returns false.
find | The number to search for. |
Searches from the beginning of a range for a given range of numbers.
public synchronized boolean contains(int s, int e);
Throws IllegalArgumentException if the parameter is invalid.
Returns true if the entire search range was found; otherwise, returns false.
s | The lower limit of the range. |
e | The upper limit of the range. |