This method of the WildcardExpression Class compares the set of strings matched by this expression to the set matched by another.
public int compareSet(Object other);
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.
other | The object containing the other set of strings. |
IllegalArgumentException if the expressions cannot be compared.