Microsoft SDK for Java

compare

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

compare(WildcardExpression other, IWildcardExpressionComparator judge, boolean requireEquality)
compare(WildcardExpression other)
compare(WildcardExpression other, IWildcardExpressionComparator judge)

compare(WildcardExpression other, IWildcardExpressionComparator judge, boolean requireEquality)

Compares the set of strings matched by this expression to the set matched by another. This variant of this method should be used for continued expressions.

Syntax

public int compare(WildcardExpression other, IWildcardExpressionComparator judge, boolean requireEquality);

Return Value

Returns one of the SetComparison field values to indicate the relationship between the sets.

Parameters

Other The object containing the other set of strings.
Judge Used for deciding what to do with two expressions.
RequireEquality Set to true if the comparator should time-out if it becomes impossible for an EQUAL result to be returned.

Exceptions

IllegalArgumentException if the expressions cannot be compared.

compare(WildcardExpression other)

Compares the set of strings matched by this expression to the set matched by another.

Syntax

public int compare(WildcardExpression other);

Return Value

Returns one of the SetComparison field to indicate the relationship between the sets. The result reflects the action of matching non-continuable expressions.

Parameters

other The object containing the other set of strings.

Exceptions

IllegalArgumentException if the expressions cannot be compared.

compare(WildcardExpression other, IWildcardExpressionComparator judge)

Compares the set of strings matched by this expression to the set matched by another. This variant of this method should be used for continued expressions.

Syntax

public int compare(WildcardExpression other, IWildcardExpressionComparator judge);

Return Value

Returns one of the SetComparison field values to indicate the relationship between the sets.

Parameters

other The object containing the other set of strings.
judge Used for deciding what to do with two expressions.

Exceptions

IllegalArgumentException if the expressions cannot be compared.

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