MatchResultCombinator

class Object
trait Matchable
class Any

Value members

Concrete methods

def and[S >: T](other: => MatchResult[S]): MatchResult[S]
Returns:

the logical and of two results

def and(other: => Result): Result
Returns:

the logical and of a MatchResult and a Result

def and(other: Matcher[T]): MatchResult[T]

apply the matcher and return the logical and of two results

apply the matcher and return the logical and of two results

def iff(condition: Boolean): MatchResult[T]

when the condition is true the result it taken as is, when it's false, take its negation

when the condition is true the result it taken as is, when it's false, take its negation

Returns:

the negation of this result

def or[S >: T](other: => MatchResult[S]): MatchResult[S]
Returns:

the logical or of two results

def or(other: => Result): Result
Returns:

the logical or of a MatchResult and a Result

def or(other: Matcher[T]): MatchResult[T]

apply the matcher and return the logical or of two results

apply the matcher and return the logical or of two results

def unless(condition: Boolean, m: String): MatchResult[T]

only consider this result if the condition is false

only consider this result if the condition is false

def when(condition: Boolean, m: String): MatchResult[T]

only consider this result if the condition is true

only consider this result if the condition is true

Concrete fields

lazy val expectable: Expectable[T]

if there was an exception on evaluating the result, no expectable can be accessed

if there was an exception on evaluating the result, no expectable can be accessed

lazy val result: Either[Exception, MatchResult[T]]

Either Left(exception) => in case of an error or Right(result) => normal result

Either Left(exception) => in case of an error or Right(result) => normal result