UndoHeader<E> class

An header with an final entry, which is doubly linked with an chain of headers, while also being doubly linked with an chain of adjacent headers, resulting in a tree like structure.

Constructors

UndoHeader(E entry, int index)
Create an header for the entry that occupies index.

Properties

entry → E
The E value that is held by this UndoHeader
final
hashCode int
The hash code for this object.
no setterinherited
index int
The index this UndoHeader occupies in the UndoTree
final
next UndoHeader<E>?
The next UndoHeader. If we are the head, or not linked yet, it is null.
getter/setter pair
nextAlt UndoHeader<E>?
The next UndoHeader node on the alt linked list.
getter/setter pair
prev UndoHeader<E>?
The previous UndoHeader. If we are the tail, or not linked yet, it is null.
getter/setter pair
prevAlt UndoHeader<E>?
The previous UndoHeader node on the alt linked list.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(E entry, int i) UndoHeader<E>
Add the entry to the current branch. If we are a head, append it, otherwise appendAlt.
altHead() UndoHeader<E>
The head of the current alt UndoHeader linked list.
altIter() Iterable<UndoHeader<E>>
An iterable which walks the alt UndoHeader linked list from the altTail to the altHead.
altTail() UndoHeader<E>
The tail of the current alt UndoHeader linked list.
append(E entry, int i) UndoHeader<E>
Append the entry to the end of the UndoHeader linked list, so that it becomes the new head.
appendAlt(E entry, int i) UndoHeader<E>
Append the entry to the end of the alt UndoHeader linked list, so that it becomes the new altHead.
entriesIter() Iterable<UndoHeader<E>>
An iterable which walks the UndoHeader linked list from the tail to the head, passing through this.
The head of the current UndoHeader linked list.
nextsIter() Iterable<UndoHeader<E>>
An iterable which walks the UndoHeader linked list from this to the head.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevsIter() Iterable<UndoHeader<E>>
An iterable which walks the UndoHeader linked list backwards from this to the tail.
tail() UndoHeader<E>
The tail of the current UndoHeader linked list.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited