Packages

sealed trait ZWorkflowState[A] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZWorkflowState
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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

  2. 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

  3. abstract def setTo(value: A): ZWorkflowState.this.type

    Replaces the state value

    Replaces the state value

    value

    new state value

    returns

    this state updated

  4. 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

  5. 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

  6. abstract def toOption: Option[A]

    Converts this state to Option

    Converts this state to Option

    returns

    the state value or None

  7. abstract def update(f: (A) => A): ZWorkflowState.this.type

    Updates the state value

    Updates the state value

    f

    updating function

    returns

    this state updated

  8. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def :=(value: A): ZWorkflowState.this.type

    Replaces the state value

    Replaces the state value

    value

    new state value

    returns

    this state updated

  4. 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

  5. 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

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. 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

  18. 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

  19. 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])
  20. 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])
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. 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

  24. 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

  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped