ListObj

trait ListObj[T <: Txn[T], A] extends Obj[T] with Publisher[T, Update[T, A, ListObj[T, A]]]

An observable linked list with fast head and last operations. This is the read-only layer, see List.Modifiable for a mutable list.

The list will report insertions and deletions.

Type parameters:
A

the element type of the list

Companion:
object
trait Obj[T]
trait Mutable[T]
trait Identified[T]
trait Elem[T]
trait Publisher[T, Update[T, A, ListObj[T, A]]]
trait Disposable[T]
trait Writable
trait Form[T]
class Object
trait Matchable
class Any
trait Modifiable[T, A]
trait Folder[T]
class Impl[T, E, Repr]

Value members

Abstract methods

def apply(index: Int)(implicit tx: T): A
def get(index: Int)(implicit tx: T): Option[A]
def head(implicit tx: T): A
def headOption(implicit tx: T): Option[A]
def indexOf(elem: A)(implicit tx: T): Int

Note: this is an O(n) operation.

Note: this is an O(n) operation.

def isEmpty(implicit tx: T): Boolean
def iterator(implicit tx: T): Iterator[A]
def last(implicit tx: T): A
def lastOption(implicit tx: T): Option[A]
def modifiableOption: Option[Modifiable[T, A]]
def nonEmpty(implicit tx: T): Boolean
def size(implicit tx: T): Int

Inherited methods

final def attr(implicit tx: T): AttrMap[T]
Inherited from:
Obj
def changed: EventLike[T, Update[T, A, ListObj[T, A]]]
Inherited from:
Publisher
def dispose()(implicit tx: T): Unit
Inherited from:
Disposable
override def equals(that: Any): Boolean
Definition Classes
Identified -> Any
Inherited from:
Identified
override def hashCode: Int
Definition Classes
Identified -> Any
Inherited from:
Identified
def id: Ident[T]
Inherited from:
Identified
override def toString: String
Definition Classes
Obj -> Any
Inherited from:
Obj
override def tpe: Type
Definition Classes
Obj -> Elem
Inherited from:
Obj
def write(out: DataOutput): Unit
Inherited from:
Writable