The UnsignedIntRanges Class of the com.ms.util package shifts unsigned numbers to the range of signed numbers.
public class UnsignedIntRanges extends IntRanges { // Constructors public UnsignedIntRanges(); public UnsignedIntRanges(String str); public UnsignedIntRanges(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); public boolean contains(int find); public int getRangeEnd(int idx); public int getRangeStart(int idx); public int indexOf(inf find, int fromRange); public int indexOf(int find); public UnsignedIntRanges intersect(UnsignedIntRanges other, IIntRangeComparator judge); public IntRanges intersect(IntRanges other, IntRangesComparator judge); public UnsignedIntRanges intersect(UnsignedIntRanges other); public boolean removeRange(int s, int e IIntRangeComparator hook); }
Those familiar with the IntRanges class should be aware that IntRanges.getRanges and IntRanges.setRanges are not converted by this derived class.
IntRanges | +--UnsignedIntRanges