final case class Required[A] extends ZWorkflowState[A] with Product with Serializable
- Alphabetic
- By Inheritance
- Required
- Serializable
- Product
- Equals
- ZWorkflowState
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def :=(value: A): Required.this.type
Replaces the state value
Replaces the state value
- value
new state value
- returns
this state updated
- Definition Classes
- ZWorkflowState
- 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
- Definition Classes
- ZWorkflowState
- 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
- Definition Classes
- ZWorkflowState
- 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 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
- Definition Classes
- Required → ZWorkflowState
- 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
- Definition Classes
- Required → ZWorkflowState
- final def getClass(): Class[_ <: AnyRef]
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- def setTo(value: A): Required.this.type
Replaces the state value
Replaces the state value
- value
new state value
- returns
this state updated
- Definition Classes
- Required → ZWorkflowState
- def setToIf(p: Boolean)(value: => A): Required.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
- Definition Classes
- ZWorkflowState
- def setToUnless(p: Boolean)(value: => A): Required.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
- Definition Classes
- ZWorkflowState
- 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
- Definition Classes
- ZWorkflowState
- 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
- Definition Classes
- ZWorkflowState
- Annotations
- @throws(scala.this.throws.<init>$default$1[NoSuchElementException])
- 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
- Definition Classes
- Required → ZWorkflowState
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- Definition Classes
- Required → ZWorkflowState
- def toOption: Option[A]
Converts this state to Option
Converts this state to Option
- returns
the state value or None
- Definition Classes
- Required → ZWorkflowState
- def update(f: (A) => A): Required.this.type
Updates the state value
Updates the state value
- f
updating function
- returns
this state updated
- Definition Classes
- Required → ZWorkflowState
- def updateIf(p: Boolean)(f: (A) => A): Required.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
- Definition Classes
- ZWorkflowState
- def updateUnless(p: Boolean)(f: (A) => A): Required.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
- Definition Classes
- ZWorkflowState
- def updateWhen(pf: PartialFunction[A, A]): Required.this.type
Updates the state when partial function matches
Updates the state when partial function matches
- pf
updating function
- returns
this state updated
- Definition Classes
- Required → ZWorkflowState
- 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)