Class SortedSlotIterator
java.lang.Object
org.eclipse.birt.report.model.api.SortedSlotIterator
- All Implemented Interfaces:
Iterator
An sorted iterator over the elements in a slot. Each call to
getNext( )
returns a handle of type DesignElementHandle
.
The elements in the list are sorted on the display name of the element.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
Internal list for sorted.protected int
Current iteration position.protected final SlotHandle
Handle to the slot over which to iterate. -
Constructor Summary
ConstructorsConstructorDescriptionSortedSlotIterator
(SlotHandle handle) Constructs a sorted slot iterator with the given slot handle. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
slotHandle
Handle to the slot over which to iterate. -
list
Internal list for sorted. -
posn
protected int posnCurrent iteration position.
-
-
Constructor Details
-
SortedSlotIterator
Constructs a sorted slot iterator with the given slot handle.- Parameters:
handle
- handle to the slot over which to iterate
-
-
Method Details
-
remove
public void remove()Removes the element at the current iterator position. -
hasNext
public boolean hasNext() -
next
Returns a handle to the next content element. The handle is one of the various element classes derived fromDesignElementHandle
.
-