Class/Object

io.atlassian.event.source

Operation

Related Docs: object Operation | package source

Permalink

case class Operation[A](run: (Option[A]) ⇒ Result[A]) extends Product with Serializable

Data-type that represents an operation that can be saved to an EventSource.API.

This type represents conditionally applied transformations of the data, so it is possible to have check-then-act semantics for all updates, including insert only if absent, and replace if value matches.

There is syntax for creating Operations, eg. "foo".insertOp and deleteOp that is accessible via import Operation.syntax._

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Operation
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Operation(run: (Option[A]) ⇒ Result[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(opt: Option[A]): Result[A]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def condition[B](p: (Option[A]) ⇒ \/[NonEmptyList[event.Reason], B]): Operation[A]

    Permalink
  8. def condition(p: (Option[A]) ⇒ Boolean)(reasons: ⇒ NonEmptyList[event.Reason]): Operation[A]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def filter(p: (A) ⇒ Boolean, becauseReasons: ⇒ NonEmptyList[event.Reason]): Operation[A]

    Permalink
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def ifAbsent: Operation[A]

    Permalink
  14. def ifEqual(a: A)(implicit eq: Equal[A]): Operation[A]

    Permalink
  15. def ifExists: Operation[A]

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def mapEqual[B](f: (A) ⇒ B)(b: B)(implicit arg0: Equal[B]): Operation[A]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def orElse(or: Operation[A]): Operation[A]

    Permalink
  22. val run: (Option[A]) ⇒ Result[A]

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def xmap[B](f: (A) ⇒ B, g: (B) ⇒ A): Operation[B]

    Permalink

    InvariantFunctor scalaz 7.1.0

  28. def ||(or: Operation[A]): Operation[A]

    Permalink

    alias for orElse

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped