sealed trait ZWorkflowState[A] extends AnyRef
- Alphabetic
- By Inheritance
- ZWorkflowState
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def exists(p: (A) => Boolean): Boolean
Returns true if this State is initialized and the predicate $p returns true when applied to this state value.
Returns true if this State is initialized and the predicate $p returns true when applied to this state value. Otherwise, returns false.
- p
the predicate to test
- abstract def forall(p: (A) => Boolean): Boolean
Returns true if this state is uninitialized or the predicate p returns true when applied to this state value.
Returns true if this state is uninitialized or the predicate p returns true when applied to this state value.
- p
the predicate to test
- abstract def setTo(value: A): ZWorkflowState.this.type
Replaces the state value
Replaces the state value
- value
new state value
- returns
this state updated
- abstract def snapshotOrElse(default: => A): A
Takes a snapshot of the state or returns the provided default value
Takes a snapshot of the state or returns the provided default value
- default
the default value
- returns
the state or default value
- abstract def toEither[E](left: => E): Either[E, A]
Converts this state to Either
Converts this state to Either
- E
error type
- left
error value which will be used when state is not initialized
- returns
the state value or Left
- abstract def toOption: Option[A]
Converts this state to Option
Converts this state to Option
- returns
the state value or None
- abstract def update(f: (A) => A): ZWorkflowState.this.type
Updates the state value
Updates the state value
- f
updating function
- returns
this state updated
- abstract def updateWhen(pf: PartialFunction[A, A]): ZWorkflowState.this.type
Updates the state when partial function matches
Updates the state when partial function matches
- pf
updating function
- returns
this state updated
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def :=(value: A): ZWorkflowState.this.type
Replaces the state value
Replaces the state value
- value
new state value
- returns
this state updated
- def =!=(that: A): Boolean
Returns true if this State is initialized and the equals to the provided value.
Returns true if this State is initialized and the equals to the provided value. Otherwise, returns false.
- that
value to check with
- returns
whenever they're equal
- def =:=(that: A): Boolean
Returns true if this State is initialized and the equals to the provided value.
Returns true if this State is initialized and the equals to the provided value. Otherwise, returns false.
- that
value to check with
- returns
whenever they're equal
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def setToIf(p: Boolean)(value: => A): ZWorkflowState.this.type
Updates the state when the predicate holds
Updates the state when the predicate holds
- p
the condition
- value
possible new state value
- returns
this state updated
- def setToUnless(p: Boolean)(value: => A): ZWorkflowState.this.type
Updates the state unless the predicate holds
Updates the state unless the predicate holds
- p
the condition
- value
possible new state value
- returns
this state updated
- def snapshot: A
Takes a snapshot of the state or throws an error
Takes a snapshot of the state or throws an error
- returns
the state value
- Annotations
- @throws(scala.this.throws.<init>$default$1[NoSuchElementException])
- def snapshotOf[B](f: (A) => B): B
Takes a snapshot of the state applying a function to it ors throw an error
Takes a snapshot of the state applying a function to it ors throw an error
- f
arbitrary function
- returns
the result of function application on this state
- Annotations
- @throws(scala.this.throws.<init>$default$1[NoSuchElementException])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateIf(p: Boolean)(f: (A) => A): ZWorkflowState.this.type
Updates the state when the predicate holds
Updates the state when the predicate holds
- p
the condition
- f
updating function
- returns
this state updated
- def updateUnless(p: Boolean)(f: (A) => A): ZWorkflowState.this.type
Updates the state unless the predicate holds
Updates the state unless the predicate holds
- p
the condition
- f
updating function
- returns
this state updated
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)