org.datamixer.collections
Class Ints

java.lang.Object
  extended byorg.datamixer.collections.DatamixerCollection
      extended byorg.datamixer.collections.DatamixerList
          extended byorg.datamixer.collections.SyntheticList
              extended byorg.datamixer.collections.Ints
All Implemented Interfaces:
java.util.Collection, java.util.List

public class Ints
extends SyntheticList


Field Summary
static int DEFAULT_EPSILON
           
static int DEFAULT_FIRST
           
static int DEFAULT_STEP
           
protected  int epsilon_
           
protected  int first_
           
protected  int last_
           
protected  int step_
           
 
Fields inherited from class org.datamixer.collections.SyntheticList
firstClosed_, hasLast_, lastClosed_, range_
 
Fields inherited from class org.datamixer.collections.DatamixerCollection
dataType_, debugEnabled_, formatPattern_, id_, initialized_, logger_, name_, repeat_
 
Constructor Summary
Ints()
           
Ints(int first)
           
Ints(int first, int last)
           
Ints(int first, int last, int step)
           
Ints(int first, int last, int step, int epsilon)
           
Ints(java.lang.String range)
           
 
Method Summary
protected  DatamixerIterator createIterator()
          Returns an iterator over the elements in this collection.
protected  java.lang.Object doGet(int index)
           
protected  int doGetSize()
           
protected  void doInitialize()
          Initialization.
 int getEpsilon()
           
 int getFirst()
           
 int getInt(int index)
           
 int getLast()
           
 int getStep()
           
 Value getValue(int index)
          Returns the element at index, wrapped in a Value.
 java.lang.Object[] newArray(int size)
          Returns the elements in this list as an array of length size.
 void setEpsilon(int value)
           
 void setFirst(int value)
           
 void setLast(int value)
           
 void setStep(int value)
           
 
Methods inherited from class org.datamixer.collections.SyntheticList
getFirstClosed, getFirstString, getLastClosed, getLastString, getRange, getRangeObject, getStepString, setFirstString, setLastString, setRange, setRangeObject, setStepString, toString
 
Methods inherited from class org.datamixer.collections.DatamixerList
add, addAll, contains, containsAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList, toArray, toArray
 
Methods inherited from class org.datamixer.collections.DatamixerCollection
add, addAll, clear, error, getDatamixerIterator, getDataType, getFormatPattern, getId, getName, getRepeat, getSize, initialize, isEmpty, iterator, remove, removeAll, retainAll, setDataType, setFormatPattern, setId, setName, setRepeat, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size
 

Field Detail

DEFAULT_FIRST

public static final int DEFAULT_FIRST
See Also:
Constant Field Values

DEFAULT_STEP

public static final int DEFAULT_STEP
See Also:
Constant Field Values

DEFAULT_EPSILON

public static final int DEFAULT_EPSILON
See Also:
Constant Field Values

first_

protected int first_

last_

protected int last_

step_

protected int step_

epsilon_

protected int epsilon_
Constructor Detail

Ints

public Ints()

Ints

public Ints(java.lang.String range)

Ints

public Ints(int first)

Ints

public Ints(int first,
            int last)

Ints

public Ints(int first,
            int last,
            int step)

Ints

public Ints(int first,
            int last,
            int step,
            int epsilon)
Method Detail

doInitialize

protected void doInitialize()
                     throws DatamixerException
Initialization.

Overrides:
doInitialize in class SyntheticList
Throws:
DatamixerException

createIterator

protected DatamixerIterator createIterator()
Returns an iterator over the elements in this collection.

Specified by:
createIterator in class DatamixerCollection
Returns:
an iterator over the elements in this collection.

getValue

public Value getValue(int index)
Description copied from class: DatamixerList
Returns the element at index, wrapped in a Value.

Specified by:
getValue in class DatamixerList

doGet

protected java.lang.Object doGet(int index)
Specified by:
doGet in class DatamixerList

newArray

public java.lang.Object[] newArray(int size)
Description copied from class: DatamixerList
Returns the elements in this list as an array of length size. If size is greater than the length of the list, the additional elements in the array are null.

Specified by:
newArray in class DatamixerList

doGetSize

protected int doGetSize()
Specified by:
doGetSize in class DatamixerCollection

getInt

public int getInt(int index)

getFirst

public int getFirst()

setFirst

public void setFirst(int value)

getLast

public int getLast()

setLast

public void setLast(int value)

getStep

public int getStep()

setStep

public void setStep(int value)

getEpsilon

public int getEpsilon()

setEpsilon

public void setEpsilon(int value)


Copyright © 2004-2006 datamixer.org. All Rights Reserved.