|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.backtrack.util.FieldRecord.CombinedIterator
public class FieldRecord.CombinedIterator
Combinated iterator of all the dimensions. It returns records in their reversed timestamp order.
FieldRecord.iterator()
Red (tfeng) |
Red (tfeng) |
Field Summary | |
---|---|
private int |
_currentNum
The number of records that have been returned by next() . |
private FieldRecord.RecordList[] |
_currentRecords
The current record for each dimension. |
private int |
_lastIndex
The dimension of the last returned record. |
private FieldRecord.RecordList |
_lastRecord
The last returned record. |
Constructor Summary | |
---|---|
FieldRecord.CombinedIterator()
Construct an iterator. |
Method Summary | |
---|---|
private int |
_maxTimestampIndex()
Get the index of the maximum timestamp in the current records. |
boolean |
hasNext()
Test if there are more elements. |
java.lang.Object |
next()
Return the next element. |
void |
remove()
Remove the last element returned by next() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int _currentNum
next()
.
private FieldRecord.RecordList[] _currentRecords
next()
for that index, or
null if no more record for that dimension.
private int _lastIndex
private FieldRecord.RecordList _lastRecord
Constructor Detail |
---|
FieldRecord.CombinedIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
next()
.
This function must be called after next()
.
remove
in interface java.util.Iterator
private int _maxTimestampIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |