Microsoft SDK for Java

intersect

The intersect method of the IntRanges Class contains the following signatures:

intersect(IntRanges other, IIntRangeComparator judge)
intersect(IntRanges other)

intersect(IntRanges other, IIntRangeComparator judge)

Constructs a new IntRanges object with the set of integers that are common to both this object and another object.

Syntax

public IntRanges intersect(IntRanges other, IIntRangeComparator judge);

Return Value

Returns an IntRanges object for the intersection of this object and other. Returns NULL if the ranges are DISJOINT.

Parameters

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.

intersect(IntRanges other)

Constructs a new IntRanges object with the set of integers that are common to both this object and another object.

Syntax

public IntRanges intersect(IntRanges other);

Return Value

Returns an IntRanges object for the intersection of this object and other. Returns NULL if the ranges are DISJOINT.

Parameters

other The other IntRanges object to find an intersection with.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.