final case class Or[+A](left: AssertResult[A], right: AssertResult[A]) extends AssertResult[A] with Product with Serializable
- Self Type
- Or[A]
- Alphabetic
- By Inheritance
- Or
- AssertResult
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Or(left: AssertResult[A], right: AssertResult[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def &&[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
Returns a new assert result that is the logical conjunction of this assert result and the specified assert result.
Returns a new assert result that is the logical conjunction of this assert result and the specified assert result.
- Definition Classes
- AssertResult
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def as[B](b: B): AssertResult[B]
Returns a new assert result, with all values mapped to the specified constant.
Returns a new assert result, with all values mapped to the specified constant.
- Definition Classes
- AssertResult
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def both[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
A named alias for
&&.A named alias for
&&.- Definition Classes
- AssertResult
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def collect[B](p: PartialFunction[A, B]): Option[AssertResult[B]]
Returns a new assert result with a filtered, mapped subset of the values in this assert result.
Returns a new assert result with a filtered, mapped subset of the values in this assert result.
- Definition Classes
- AssertResult
- final def either[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
A named alias for
||.A named alias for
||.- Definition Classes
- AssertResult
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
- Definition Classes
- Or → Equals → AnyRef → Any
- final def failures[B](implicit ev: <:<[A, Either[B, _]]): Option[AssertResult[B]]
If this assert value is a success returns
None.If this assert value is a success returns
None. If it is a failure returns a new assert value containing all failures that are relevant to this assert value being a failure.- Definition Classes
- AssertResult
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fold[B](caseValue: (A) => B)(caseAnd: (B, B) => B, caseOr: (B, B) => B): B
Folds over the assert result bottom up, first converting values to
Bvalues, and then combining theBvalues, using the specified functions.Folds over the assert result bottom up, first converting values to
Bvalues, and then combining theBvalues, using the specified functions.- Definition Classes
- AssertResult
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def hashCode(): Int
- Definition Classes
- AssertResult → AnyRef → Any
- final def isFailure(implicit ev: <:<[A, Either[_, _]]): Boolean
Determines whether the assert result is a failure, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction.Determines whether the assert result is a failure, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction.- Definition Classes
- AssertResult
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isSuccess(implicit ev: <:<[A, Either[_, _]]): Boolean
Determines whether the assert result is a success, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction.Determines whether the assert result is a success, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction.- Definition Classes
- AssertResult
- val left: AssertResult[A]
- final def map[B](f: (A) => B): AssertResult[B]
Returns a new assert result, with all values mapped by the specified function.
Returns a new assert result, with all values mapped by the specified function.
- Definition Classes
- AssertResult
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def not[B, C](implicit ev: <:<[A, Either[B, C]]): AssertResult[Either[C, B]]
Negates this assert result, converting all successes into failures and failures into successes.
Negates this assert result, converting all successes into failures and failures into successes.
- Definition Classes
- AssertResult
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val right: AssertResult[A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def ||[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
Returns a new assert result that is the logical disjunction of this assert result and the specified assert result.
Returns a new assert result that is the logical disjunction of this assert result and the specified assert result.
- Definition Classes
- AssertResult