ChangeQueue<C>public class UnlimitedChangeQueue<C> extends java.lang.Object implements ChangeQueue<C>
ChangeQueue.QueuePosition| Constructor | Description |
|---|---|
UnlimitedChangeQueue() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
forgetHistory() |
|
ChangeQueue.QueuePosition |
getCurrentPosition() |
|
boolean |
hasNext() |
|
boolean |
hasPrev() |
|
C |
next() |
Returns the next item and increases the current position by 1.
|
C |
peekNext() |
Returns the next item.
|
C |
peekPrev() |
Returns the previous item.
|
C |
prev() |
Returns the previous item and decreases the current position by 1.
|
void |
push(C... changes) |
public final boolean hasNext()
hasNext in interface ChangeQueue<C>public final boolean hasPrev()
hasPrev in interface ChangeQueue<C>public final C peekNext()
ChangeQueuepeekNext in interface ChangeQueue<C>public final C next()
ChangeQueuenext in interface ChangeQueue<C>public final C peekPrev()
ChangeQueuepeekPrev in interface ChangeQueue<C>public final C prev()
ChangeQueueprev in interface ChangeQueue<C>public void forgetHistory()
forgetHistory in interface ChangeQueue<C>@SafeVarargs public final void push(C... changes)
push in interface ChangeQueue<C>public ChangeQueue.QueuePosition getCurrentPosition()
getCurrentPosition in interface ChangeQueue<C>