ReactionADT
io.github.positionpal.reaction.ReactionADT
object ReactionADT
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ReactionADT.type
Members list
Type members
Classlikes
trait ComposableReaction[E, S, R] extends ReactionADT[E, S, R]
The context of a Reaction
The context of a Reaction
Value parameters
- event
-
The occurred event
- state
-
The current state of the entity that reacts to the event.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait FilterableReaction[E, S, R] extends ReactionADT[E, S, R]
trait OptionReaction[E, S, T] extends ComposableReaction[E, S, Option[T]], FilterableReaction[E, S, Option[T]]
A specialized version of ReactionADT where the result of the reaction is wrapped in an Option
. This trait provides composition and filtering for reactions that return an Option[T]
.
A specialized version of ReactionADT where the result of the reaction is wrapped in an Option
. This trait provides composition and filtering for reactions that return an Option[T]
.
Type parameters
- T
-
The type of the result wrapped in the
Option
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
A data type used for representing a reaction to a given event
A data type used for representing a reaction to a given event
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
In this article