Microsoft SDK for Java

compareSet

This method of the WildcardExpression Class compares the set of strings matched by this expression to the set matched by another.

Syntax

public int compareSet(Object other);

Return Value

Returns one of the SetComparison field values to indicate the relationship between the sets. If other is not a WildcardExpression object, returns DISJOINT. 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.

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