Packages

final case class Optional[A] extends ZWorkflowState[A] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, ZWorkflowState[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Optional
  2. Serializable
  3. Product
  4. Equals
  5. ZWorkflowState
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

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

    Replaces the state value

    Replaces the state value

    value

    new state value

    returns

    this state updated

    Definition Classes
    ZWorkflowState
  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

    Definition Classes
    ZWorkflowState
  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

    Definition Classes
    ZWorkflowState
  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 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
    OptionalZWorkflowState
  11. 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
    OptionalZWorkflowState
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def isEmpty: Boolean

    Checks whenever the state is initialized.

    Checks whenever the state is initialized.

    returns

    true if not initialized

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def nonEmpty: Boolean

    Checks whenever the state is initialized.

    Checks whenever the state is initialized.

    returns

    true if initialized

  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. def setTo(value: A): Optional.this.type

    Replaces the state value

    Replaces the state value

    value

    new state value

    returns

    this state updated

    Definition Classes
    OptionalZWorkflowState
  21. def setToIf(p: Boolean)(value: => A): Optional.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
  22. def setToUnless(p: Boolean)(value: => A): Optional.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
  23. 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])
  24. 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])
  25. 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
    OptionalZWorkflowState
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. 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
    OptionalZWorkflowState
  28. def toOption: Option[A]

    Converts this state to Option

    Converts this state to Option

    returns

    the state value or None

    Definition Classes
    OptionalZWorkflowState
  29. def update(f: (A) => A): Optional.this.type

    Updates the state value

    Updates the state value

    f

    updating function

    returns

    this state updated

    Definition Classes
    OptionalZWorkflowState
  30. def updateIf(p: Boolean)(f: (A) => A): Optional.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
  31. def updateUnless(p: Boolean)(f: (A) => A): Optional.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
  32. def updateWhen(pf: PartialFunction[A, A]): Optional.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
    OptionalZWorkflowState
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. 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 Serializable

Inherited from Product

Inherited from Equals

Inherited from ZWorkflowState[A]

Inherited from AnyRef

Inherited from Any

Ungrouped