trait Action[+R, -W[+X] <: When[X]] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- Action
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type =/>[-A, +B] = PartialFunction[A, B]
Abstract Value Members
-
abstract
def
flatMap[T](f: (R) ⇒ Expect[T]): Action[T, W]
- Attributes
- protected[work.martins.simon.expect]
-
abstract
def
map[T](f: (R) ⇒ T): Action[T, W]
- Attributes
- protected[work.martins.simon.expect]
- abstract def run[RR >: R](when: W[RR], runContext: RunContext[RR]): RunContext[RR]
-
abstract
def
structurallyEquals[RR >: R, WW[+X] <: W[X]](other: Action[RR, WW]): Boolean
Returns whether the other Action is structurally equal to this Action.
Returns whether the other Action is structurally equal to this Action.
- other
the other Action to campare this Action to.
Exit() structurallyEquals Exit() //returns true Exit() structurallyEquals Send() //returns false Send("AA") structurallyEquals Send("BB") //returns true Returning(5) structurallyEquals Returning { complexFunctionReturningAnInt } //returns true Returning("AA") structurallyEquals Returning(5) //won't compile
We cannot test that an Action is equal to another Action because some actions return a value by invoking a function. And equality on a function is not defined. So in other to extract some useful information about the "equality" of two actions we created this function.
Example: -
abstract
def
transform[T](flatMapPF: =/>[R, Expect[T]], mapPF: =/>[R, T]): Action[T, W]
- Attributes
- protected[work.martins.simon.expect]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Action[R, W], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (Action[R, W]) ⇒ Boolean, msg: ⇒ Any): Action[R, W]
- def ensuring(cond: (Action[R, W]) ⇒ Boolean): Action[R, W]
- def ensuring(cond: Boolean, msg: ⇒ Any): Action[R, W]
- def ensuring(cond: Boolean): Action[R, W]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
pfNotDefined[RR >: R, T](r: RR): T
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Action[R, W], B)