And

works.iterative.workflow.Guard.And
final case class And[R, S](left: Guard[R, S], right: Guard[R, S]) extends Guard[R, S]

Conjunction guard — both branches must pass.

Failures are accumulated flatly: any inner Conjunction is flattened into the list, so Conjunction(Conjunction(A, B), C) evaluates to Conjunction(List(A, B, C)). This guarantees no redundant nesting of Conjunction nodes.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Guard[R, S]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def check(ctx: GuardContext[R, S]): Either[GuardFailure, Unit]

Inherited methods

infix def and(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
infix def or(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product