ResultLogicalCombinator

class Object
trait Matchable
class Any

Value members

Concrete methods

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

the logical and combination of 2 results

def iff(condition: Boolean): Result

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

def not: Result
Returns

Success if it is a failure and vice-versa

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

the logical or combination of 2 results

def unless(condition: Boolean, message: String): Result

only consider this result if the condition is false

only consider this result if the condition is false

def when(condition: Boolean, message: String): Result

only consider this result if the condition is true

only consider this result if the condition is true