The AbstractCursor implements most of the methods of the
Cursor-interface and is useful in that cases when you produce
elements and want to ´return´ them by a Cursor.
Computes the next element (Contract: this method computes the
next element to be returned by a call to next(),
it sets the next-field by calling setNext(Object),
or setNextIterator(Iterator),
this method is only called by getNext()).
Returns a Map.Entry-object with the minimal value as its key and the list of objects equal to the minimal value in the same order provided by the iterator as its value using a ComparableComparator.
Returns a Map.Entry-object with the minimal value as its key and the list of objects equal to the minimal value in the same order provided by the iterator as its value.
Returns a Map.Entry-object with the minimal value as its key and the list of objects having this minimal value in the same order provided by the iterator as its value using a ComparableComparator.
Returns a Map.Entry-object with the minimal value as its key and the list of objects having this minimal value in the same order provided by the iterator as its value.
Removes from the underlying collection the last element returned
by the iterator (optional operation/This method always
throws an UnsupportedOperationException).
Sets the attribute "next" with the given non-empty Iterator and sets hasNext=true
(IMPORTANT: This method is called setNextIterator and not setNext
because this is a potential source of bugs if this
AbstractCursor is a Cursors of Iterators, in that case it
would not be clear which method has to be called).