Class LatestFirstSystemMessageList


  • public class LatestFirstSystemMessageList
    extends scala.AnyVal
    INTERNAL API

    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.

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

    • Constructor Detail

      • LatestFirstSystemMessageList

        public LatestFirstSystemMessageList​(SystemMessage head)