Microsoft SDK for Java

intersect

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

intersect(WildcardExpression other, IWildcardExpressionComparator judge)
intersect(WildcardExpression other)

intersect(WildcardExpression other, IWildcardExpressionComparator judge)

Constructs an expression that matches any strings that this and another expression both match.

Syntax

public WildcardExpression intersect(WildcardExpression other, IWildcardExpressionComparator judge);

Return Value

Returns an expression that is the intersection of the two expressions.

Parameters

Other The other expression.
Judge A helper interface.

Remarks

If either expression contains redundant subexpressions, the resulting expression will also contain redundant intersections. Calling condense beforehand on both expressions might improve the efficiency of this operaration. Redundant expressions might be returned even if the source expressions contain no redundant expressions.

intersect(WildcardExpression other)

Constructs an expression that matches any strings that this and another expression both match.

Syntax

public WildcardExpression intersect(WildcardExpression other);

Return Value

Returns an expression that is the intersection of the two expressions.

Parameters

other The other expression.

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