Journal

com.phasmidsoftware.visitor.core.Journal
trait Journal[X] extends Appendable[X]

A trait representing a journal for managing a collection of appendable elements of type X.

The Journal extends the behavior of Appendable, supporting the addition of elements while also introducing lifecycle management through the ability to close the journal.

Implementing classes can define additional behaviors, such as persistence, iteration, or other domain-specific functionalities.

Type parameters

X

the type of elements that can be managed by the journal

Attributes

Graph
Supertypes
trait Appendable[X]
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
trait IterableJournal[X]
class CameFromJournal[V]
class ListJournal[X]
class QueueJournal[X]
class AbstractMapJournal[K, V]
class FunctionMapJournal[K, V]
class MapJournal[K, V]
trait FunctionMappedJournal[X, Y]
trait IterableJournal[X]
class ListJournal[X]
class QueueJournal[X]
Show all

Members list

Value members

Abstract methods

def close(): Unit

Inherited and Abstract methods

def append(x: X): Appendable[X]

Appends the specified element to this appendable structure and returns the instance itself, allowing for a fluent interface.

Appends the specified element to this appendable structure and returns the instance itself, allowing for a fluent interface.

Value parameters

x

the element of type X to be appended

Attributes

Returns

the instance of the appendable structure with the new element appended

Inherited from:
Appendable