CommonState

class CommonState[T](val content: Seq[T]) extends State[T]

Common State has int status and transaction market. It can apply to Seq[T] or any serial collection.

Common State has int status and transaction market. It can apply to Seq[T] or any serial collection.

Authors

Mars Liu

Version

1.0.0

trait State[T]
class Object
trait Matchable
class Any
class TxtState

Type members

Types

override type Status = Int
override type Tran = Int

Inherited types

type Index
Inherited from
State

Value members

Concrete methods

def begin(): Tran
def begin(tran: Tran): Tran
def commit(tran: Tran): Unit
def next(): Try[T]
def rollback(tran: Tran): Unit

Inherited methods

def eof[U >: T]: Parsec[U, Unit]
Inherited from
State
def pack[T, U >: T](item: T): Parsec[U, T]
Inherited from
State
def trap[T](message: String): Failure[T]
Inherited from
State

Concrete fields

val content: Seq[T]
var current: Int
var tran: Int