| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedList | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(final int
the bundle to which the specified bundle, final E element will be added.the element to add. element)Add the element to the specified bundle. |
| public boolean | |
| public E | |
| public boolean | Returns: true if next bundle exists and is not emptySwitches to the next bundle in the queue, all the unread elements from the previously active bundle will be removed. |
| internalQueue | back to summary |
|---|---|
| private final LinkedList<BundleQueue. | |
| lastElementAbsoluteDistance | back to summary |
|---|---|
| private int lastElementAbsoluteDistance | |
| BundleQueue | back to summary |
|---|---|
| pack-priv BundleQueue() | |
| add | back to summary |
|---|---|
| public void add(final int bundle, final E element) Add the element to the specified bundle. The bundle is represented by its order in the queue. It is not possible to add the element to a bundle, which already exists and is not the last bundle in the queue.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Returns true if there is available element in the current bundle. | |
| next | back to summary |
|---|---|
| public E next() Returns next available element in the current bundle. | |
| nextBundle | back to summary |
|---|---|
| public boolean nextBundle() Switches to the next bundle in the queue, all the unread elements from the previously active bundle will be removed.
| |
| Access | Constructor and Description |
|---|---|
| public |
| distance | back to summary |
|---|---|
| private int distance | |
| value | back to summary |
|---|---|
| private final E value | |
| Record | back to summary |
|---|---|
| public Record(final E value, final int distance) | |