Microsoft SDK for Java

IntRanges Class

The IntRanges Class of the com.ms.util package maintains a list of integer ranges. Readers and writers of this list should be externally synchronized.

public class IntRanges implements Cloneable, SetComparison
{
  // Constructors
  public IntRanges();
  public IntRanges(String str);
  public IntRanges(String str, String delims);

  // Methods
  public synchronized void addRange(int s, int e);
  public synchronized void addRanges(IntRanges r);
  public synchronized void addSingleton(int n);
  public StringBuffer appendToStringBuffer(StringBuffer sb);
  protected Object clone();
  public int compare(IntRanges other);
  public int compare(IntRanges other);
  public int compareSet(Object other);
  public static String ComparisonResulttoString(int cmp);
  public synchronized void condense(IIntRangeComparator judge);
  public void condense();
  public boolean contains(int find);
  public synchronized boolean contains(int s, int e);
  public synchronized IntRanges copy();
  public int getRangeEnd(int idx);
  public synchronized int[] getRanges();
  public int getRangeStart(int idx);
  public int synchronized indexOf(int find, int fromRange);
  public int indexOf(int find);
  public IntRanges intersect(IntRanges other
        IIntRangeComparator judge);
  public IntRanges intersect(IntRanges other);
  public static int invertComparisonResult(int cmp);
  public boolean isEmpty();
  public synchronized boolean lock(Object key);
  public synchronized void parse(String str, String delims);
  public void parse(String str);
  public boolean removeRange(int re, int re);
  public void removeRange(int i, IIntRangeComparator hook);
  public void removeRange(int i);
  public synchronized boolean removeRange(int s, int e,
        IIntRangeComparator hook);
  public synchronized void removeRanges(int i, int count,
        IIntRangeComparator hook);
  public void removeRanges(int i, int count);
  public boolean removeSingleton(int n);
  public boolean removeSingleton(int n, IIntRangeComparator hook);
  public synchronized void setRanges(int[] array);
  public int size();
  public synchronized void sort(IIntComparator judge);
  public void sort();
  public String toString();
  public synchronized boolean unlock(Object key);
}

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