MutableEventIterator

interface MutableEventIterator : EventIterator, MutableListIterator<Event>

A mutable variation of EventIterator, which may be used to mutate an underlying log of events.

Functions

Link copied to clipboard
abstract fun add(element: Event)

abstract fun add(    seqno: SequenceNumber,     site: SiteIdentifier,     event: ByteArray,     from: Int = 0,     until: Int = event.size)

Adds an event at the current implicit cursor position, and moves the cursor after the inserted element.

Link copied to clipboard
abstract operator override fun hasNext(): Boolean
Link copied to clipboard
abstract fun hasPrevious(): Boolean
Link copied to clipboard
abstract fun moveNext()

Moves the EventIterator to the next event, without allocations.

Link copied to clipboard
abstract fun movePrevious()

Moves the EventIterator to the previous event, without allocations.

Link copied to clipboard
abstract operator override fun next(): Event
Link copied to clipboard
abstract fun nextIndex(): Int
Link copied to clipboard
abstract fun previous(): Event
Link copied to clipboard
abstract fun previousIndex(): Int
Link copied to clipboard
abstract override fun remove()
Link copied to clipboard
abstract fun set(element: Event)

Properties

Link copied to clipboard
abstract val nextEvent: MutableByteGapBuffer

The body of the next event, between nextFrom and nextUntil.

Link copied to clipboard
open val nextEventIdentifier: EventIdentifier

The EventIdentifier of the next event.

Link copied to clipboard
abstract val nextFrom: Int

The start of the next event body.

Link copied to clipboard
abstract val nextSeqno: SequenceNumber

The SequenceNumber of the next event.

Link copied to clipboard
abstract val nextSite: SiteIdentifier

The SiteIdentifier of the next event.

Link copied to clipboard
abstract val nextUntil: Int

The end (non-inclusive) of next event body.

Link copied to clipboard
abstract val previousEvent: MutableByteGapBuffer

The body of the previous event, between previousFrom and previousUntil.

Link copied to clipboard
open val previousEventIdentifier: EventIdentifier

The EventIdentifier of the previous event.

Link copied to clipboard
abstract val previousFrom: Int

The start of the previous event body.

Link copied to clipboard
abstract val previousSeqno: SequenceNumber

The SequenceNumber of the previous event.

Link copied to clipboard
abstract val previousSite: SiteIdentifier

The SiteIdentifier of the previous event.

Link copied to clipboard
abstract val previousUntil: Int

The end (non-inclusive) of previous event body.