Package org.fxmisc.undo.impl
Interface ChangeQueue<C>
-
- All Known Implementing Classes:
FixedSizeChangeQueue,UnlimitedChangeQueue,ZeroSizeChangeQueue
public interface ChangeQueue<C>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceChangeQueue.QueuePosition
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidforgetHistory()ChangeQueue.QueuePositiongetCurrentPosition()booleanhasNext()booleanhasPrev()Cnext()Returns the next item and increases the current position by 1.CpeekNext()Returns the next item.CpeekPrev()Returns the previous item.Cprev()Returns the previous item and decreases the current position by 1.voidpush(C... changes)
-
-
-
Method Detail
-
hasNext
boolean hasNext()
-
hasPrev
boolean hasPrev()
-
peekNext
C peekNext()
Returns the next item. Current position stays unchanged.
-
peekPrev
C peekPrev()
Returns the previous item. Current position stays unchanged.
-
next
C next()
Returns the next item and increases the current position by 1.
-
prev
C prev()
Returns the previous item and decreases the current position by 1.
-
push
void push(C... changes)
-
getCurrentPosition
ChangeQueue.QueuePosition getCurrentPosition()
-
forgetHistory
void forgetHistory()
-
-