Class EarliestFirstSystemMessageList

  • public class EarliestFirstSystemMessageList
    extends scala.AnyVal

    Value class supporting list operations on system messages. The next field of SystemMessage is hidden, and can only accessed through the value classes LatestFirstSystemMessageList and EarliestFirstSystemMessageList, abstracting over the fact that system messages are the list nodes themselves. If used properly, this stays a compile time construct without any allocation overhead.

    This list is mutable.

    This list type also encodes that the messages contained are in reverse order, i.e. the head of the list is the latest appended element.