com.myjavatools.lib.foundation
Class RangeList

java.lang.Object
  extended by com.myjavatools.lib.foundation.RangeList

public class RangeList
extends java.lang.Object

RangeList is a class that represents a list of values in a range. It is immutable.

Since:
5.0
Version:
6.0 05/04/06
See Also:
List

Constructor Summary
RangeList()
           
 
Method Summary
static java.util.List<java.lang.Double> rangeList(double from, double to, double step)
          Creates a list of doubles
static java.util.List<java.lang.Integer> rangeList(int from, int to)
          Creates a list of integers
static java.util.List<java.lang.Integer> rangeList(int from, int to, int step)
          Creates a list of integers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeList

public RangeList()
Method Detail

rangeList

public static java.util.List<java.lang.Integer> rangeList(int from,
                                                          int to,
                                                          int step)
Creates a list of integers

Parameters:
from - int
to - int
step - int
Returns:
List that "contains" integers from from to to with a step step

rangeList

public static java.util.List<java.lang.Integer> rangeList(int from,
                                                          int to)
Creates a list of integers

Parameters:
from - integer
to - int
Returns:
List that "contains" integers from from to to

rangeList

public static java.util.List<java.lang.Double> rangeList(double from,
                                                         double to,
                                                         double step)
Creates a list of doubles

Parameters:
from - double
to - double
step - double
Returns:
List that "contains" doubles from from to to with a step step