|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xxl.cursors.Aggregator
The Aggregator computes an aggregate for an input-Iterator.
| Field Summary | |
protected java.lang.Object |
aggregate
|
protected Cursor |
cursor
Input-Cursor. |
protected Function |
function
|
protected boolean |
initialized
|
| Constructor Summary | |
Aggregator(Cursor cursor,
Function function,
java.lang.Object aggregate)
Creates a new Aggregator. |
|
Aggregator(java.util.Iterator iterator,
Function function)
Creates a new Aggregator. |
|
Aggregator(java.util.Iterator iterator,
Function function,
java.lang.Object aggregate)
Creates a new Aggregator. |
|
Aggregator(PeekIterator peekIterator,
Function function,
java.lang.Object aggregate)
Creates a new Aggregator. |
|
| Method Summary | |
void |
close()
Closes the Cursor. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
last()
Returns the last element of this Cursor. |
java.lang.Object |
next()
Returns the next element in the iteration. |
java.lang.Object |
peek()
Shows the next element in the iteration without removing it. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
void |
reset()
Resets the Cursor to its initial state. |
boolean |
supportsPeek()
Returns true if the peek operation is supported by this PeekIterator. |
void |
update(java.lang.Object object)
Replaces the object that was returned by the last call to next() or peek(). |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Cursor cursor
protected Function function
protected java.lang.Object aggregate
protected boolean initialized
| Constructor Detail |
public Aggregator(Cursor cursor,
Function function,
java.lang.Object aggregate)
cursor - input-Cursorfunction - used for the aggregationaggregate - result-object for the aggregation
public Aggregator(java.util.Iterator iterator,
Function function,
java.lang.Object aggregate)
iterator - input-Iteratorfunction - used for the aggregationaggregate - result-object for the aggregation
public Aggregator(PeekIterator peekIterator,
Function function,
java.lang.Object aggregate)
peekIterator - input-PeekIteratorfunction - used for the aggregationaggregate - result-object for the aggregation
public Aggregator(java.util.Iterator iterator,
Function function)
iterator - input-Iteratorfunction - used for the aggregation| Method Detail |
public void close()
public boolean hasNext()
public java.lang.Object last()
throws java.util.NoSuchElementException
public java.lang.Object next()
throws java.util.NoSuchElementException
public java.lang.Object peek()
throws java.util.NoSuchElementException,
java.lang.UnsupportedOperationException
public void remove()
throws java.lang.UnsupportedOperationException
public void reset()
throws java.lang.UnsupportedOperationException
public boolean supportsPeek()
public void update(java.lang.Object object)
throws java.lang.UnsupportedOperationException
object - the object that replaces the object returned
by the last call to next() or peek()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||