Microsoft SDK for Java

IncludeExcludeIntRanges Class

The IncludeExcludeIntRanges Class of the com.ms.util package maintains a set of integers specified by a pair of IntRanges objects. The First IntRanges object specifies a set of integers that are included in the set, and the second specifies integers that are excluded from the set.

public class IncludeExcludeIntRanges implements SetComparison
            ProvideSetComparisonInfo
{
  // Constructors
  public IncludeExcludeIntRanges(InitRanges Include,
        IntRanges exclude);
  public IncludeExcludeIntRanges();

  // Methods
  public Object combineSetRules(Object o1, Object o2);
  public int compareSet(Object other)
  public int compareSetRules(Object o1, Object o2);
  public boolean contains(int n);
  public void excludeRange(int s, int e);
  public void excludeRanges(IntRanges ranges);
  public IntRanges getExcludedRanges();
  public IntRanges getIncludedRanges();
  public Object getSetRule(int rule);
  public String getStringForSetRule(object o);
  public void includeRange(int s, int e);
  public void includeRanges(IntRanges ranges);
  public Object intersectSetRules(Object o1, Object o2);
  public void invalidate();
  public boolean isEmptySetRule(object o);
  public String toString();
  public void validate();
}

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