com.vgrs.xcode.util
Class RangeCreator

java.lang.Object
  extended by com.vgrs.xcode.util.RangeCreator

public class RangeCreator
extends java.lang.Object

This class contains utility methods to create a Collection of Range objects from either a TIntSet or a TIntList.

Version:
1.0 Jun 11, 2010
Author:
nchigurupati

Constructor Summary
RangeCreator()
           
 
Method Summary
static java.util.Collection<Range> createRanges(TIntList aList)
          Create a Collection<Range> from code points in a TIntList.
static java.util.Collection<Range> createRanges(TIntSet aSet)
          Create a Collection<Range> from code points in a TIntSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeCreator

public RangeCreator()
Method Detail

createRanges

public static java.util.Collection<Range> createRanges(TIntSet aSet)
Create a Collection<Range> from code points in a TIntSet. The code points are added to a TIntList so that they can be sorted prior to creating Collection objects.

Parameters:
aSet -
Returns:
Collection<Range> from code points in a TIntSet

createRanges

public static java.util.Collection<Range> createRanges(TIntList aList)
Create a Collection<Range> from code points in a TIntList.

Parameters:
aList - a list containing int values that need to be converted into Range objects.
Returns:
Collection<Range> from code points in a TIntList


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved