|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.datamixer.collections.DatamixerCollection
org.datamixer.collections.DatamixerList
org.datamixer.collections.SyntheticList
org.datamixer.collections.Dates
| Field Summary | |
static int[] |
DEFAULT_EPSILON
default epsilon = 1 msec |
static java.util.Date |
DEFAULT_FIRST
default first date is now |
static int[] |
DEFAULT_STEPS
default step = 1 day |
protected int |
direction_
positive one if step is increasing, negative one if decreasing |
protected TimeConstant |
epsilon_
|
protected java.util.Calendar |
first_
|
protected java.util.Calendar |
last_
|
protected long |
lastTime_
optimization for comparisons |
protected TimeConstant |
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 | |
Dates()
|
|
Dates(java.util.Date first)
|
|
Dates(java.util.Date first,
java.util.Date last)
|
|
Dates(java.util.Date first,
java.util.Date last,
java.util.Date step)
|
|
Dates(java.util.Date first,
java.util.Date last,
java.util.Date step,
java.util.Date epsilon)
|
|
Dates(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()
This gets all values from the list and counts them. |
protected void |
doInitialize()
Initialization. |
java.util.Date |
getDate(int index)
|
java.util.Date |
getEpsilon()
|
java.util.Date |
getFirst()
|
java.util.Date |
getLast()
|
java.util.Date |
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(java.util.Date value)
|
void |
setFirst(java.util.Date value)
|
void |
setLast(java.util.Date value)
|
void |
setStep(java.util.Date 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 |
public static final java.util.Date DEFAULT_FIRST
public static final int[] DEFAULT_STEPS
public static final int[] DEFAULT_EPSILON
protected java.util.Calendar first_
protected java.util.Calendar last_
protected TimeConstant step_
protected TimeConstant epsilon_
protected int direction_
protected long lastTime_
| Constructor Detail |
public Dates()
public Dates(java.lang.String range)
public Dates(java.util.Date first)
public Dates(java.util.Date first,
java.util.Date last)
public Dates(java.util.Date first,
java.util.Date last,
java.util.Date step)
public Dates(java.util.Date first,
java.util.Date last,
java.util.Date step,
java.util.Date epsilon)
| Method Detail |
protected void doInitialize()
throws DatamixerException
doInitialize in class SyntheticListDatamixerExceptionprotected DatamixerIterator createIterator()
createIterator in class DatamixerCollectionpublic Value getValue(int index)
DatamixerListValue.
getValue in class DatamixerListprotected java.lang.Object doGet(int index)
doGet in class DatamixerListpublic java.lang.Object[] newArray(int size)
DatamixerListsize. If size is greater than the length of the
list, the additional elements in the array are null.
newArray in class DatamixerListprotected int doGetSize()
doGetSize in class DatamixerCollectionpublic java.util.Date getDate(int index)
public java.util.Date getFirst()
public void setFirst(java.util.Date value)
public java.util.Date getLast()
public void setLast(java.util.Date value)
public java.util.Date getStep()
public void setStep(java.util.Date value)
public java.util.Date getEpsilon()
public void setEpsilon(java.util.Date value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||