The IntRanges Class contains the following methods:
addRange adds a range to the IntRange object.
addRanges adds another set of ranges to this object's set of ranges.
addSingleton adds a range of a single integer to the IntRange object.
appendToStringBuffer appends a string representation of the integer ranges to a given string buffer.
clone creates a copy of the set of ranges.
compare compares this set of ranges to another.
compareSet compares this set of ranges to another.
ComparisonResulttoString converts comparison result flags to a string format.
condense merges overlapping ranges.
contains searches from the beginning of a range for a given number.
copy creates a copy of the set of ranges.
getRangeEnd retrieves the end of a range at a specified index.
getRanges retrieves the integer range pairs as an integer array.
getRangeStart retrieves the start of a range at a specified index.
indexOf searches from a starting index for a range pair containing a given a number.
intersect constructs a new IntRanges object with the set of integers that are common to both this object and another object.
invertComparisonResult inverts comparison results.
isEmpty determines if the IntRanges object is empty.
lock assigns a key and locks the IntRanges object.
parse parses the ranges in the string, separated with specified delimiters.
removeRange removes a range of integers from the IntRange object.
removeRanges removes ranges specified by index from the IntRange object.
removeSingleton removes a single integer from the IntRange object.
setRanges sets the integer ranges from an existing integer array.
size retrieves the size of the IntRanges object.
sort sorts the ranges by the first element in each range pair.
toString retrieves a string representation of the IntRanges.
unlock unlocks the IntRanges.