The intersect method of the IntRanges Class contains the following signatures:
intersect(IntRanges other, IIntRangeComparator judge)
intersect(IntRanges other)
Constructs a new IntRanges object with the set of integers that are common to both this object and another object.
public IntRanges intersect(IntRanges other, IIntRangeComparator judge);
Returns an IntRanges object for the intersection of this object and other. Returns NULL if the ranges are DISJOINT.
other | The other IntRanges object to find an intersection with. |
judge | The hook interface to notify using IIntRangeComparator.intersectRanges of intersecting ranges that will be added to the new IntRanges object. |
Constructs a new IntRanges object with the set of integers that are common to both this object and another object.
public IntRanges intersect(IntRanges other);
Returns an IntRanges object for the intersection of this object and other. Returns NULL if the ranges are DISJOINT.
other | The other IntRanges object to find an intersection with. |