Package org.fxmisc.undo.impl
Class UnlimitedChangeQueue<C>
java.lang.Object
org.fxmisc.undo.impl.UnlimitedChangeQueue<C>
- All Implemented Interfaces:
ChangeQueue<C>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.fxmisc.undo.impl.ChangeQueue
ChangeQueue.QueuePosition -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList<RevisionedChange<C>> private intprivate intprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanhasNext()final booleanhasPrev()final Cnext()Returns the next item and increases the current position by 1.final CpeekNext()Returns the next item.final CpeekPrev()Returns the previous item.final Cprev()Returns the previous item and decreases the current position by 1.final voidprivate longrevisionForPosition(int position)
-
Field Details
-
changes
-
currentPosition
private int currentPosition -
revision
private long revision -
zeroPositionRevision
private long zeroPositionRevision -
forgottenCount
private int forgottenCount
-
-
Constructor Details
-
UnlimitedChangeQueue
public UnlimitedChangeQueue()
-
-
Method Details
-
hasNext
public final boolean hasNext()- Specified by:
hasNextin interfaceChangeQueue<C>
-
hasPrev
public final boolean hasPrev()- Specified by:
hasPrevin interfaceChangeQueue<C>
-
peekNext
Description copied from interface:ChangeQueueReturns the next item. Current position stays unchanged.- Specified by:
peekNextin interfaceChangeQueue<C>
-
next
Description copied from interface:ChangeQueueReturns the next item and increases the current position by 1.- Specified by:
nextin interfaceChangeQueue<C>
-
peekPrev
Description copied from interface:ChangeQueueReturns the previous item. Current position stays unchanged.- Specified by:
peekPrevin interfaceChangeQueue<C>
-
prev
Description copied from interface:ChangeQueueReturns the previous item and decreases the current position by 1.- Specified by:
previn interfaceChangeQueue<C>
-
forgetHistory
public void forgetHistory()- Specified by:
forgetHistoryin interfaceChangeQueue<C>
-
push
- Specified by:
pushin interfaceChangeQueue<C>
-
getCurrentPosition
- Specified by:
getCurrentPositionin interfaceChangeQueue<C>
-
revisionForPosition
private long revisionForPosition(int position)
-