Appendable

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

A trait representing an appendable structure that supports the addition of elements of type X and exhibits a fluent interface by returning itself after each append operation.

Implementing classes may define specific behavior for how elements are appended and may provide additional lifecycle management by extending AutoCloseable.

Type parameters

X

the type of elements that can be appended to the structure

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
trait Journal[X]
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]
class NonAppendable[X]
Show all

Members list

Value members

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 and Abstract methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable