Microsoft SDK for Java

InvertComparisonResult

This method of the WildcardExpression Class inverts comparison results.

Syntax

public static int InvertComparisonResult(int cmp);

Return Value

Returns the inverted comparison result.

Parameters

cmp Any comparison result of the compare method, which is inverted as follows:
  1. SUBSET returns SUPERSET.

  2. SUPERSET returns a SUBSET.

  3. any other result is not affected and is simply returned. Note that EQUAL and DISJOINT are not inverted by this function.

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