sealed trait Result extends AnyRef
A base trait for validation results.
- Alphabetic
- By Inheritance
- Result
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def and(other: Result): Result
Returns a new result representing successful validation of both rules, or failure or either.
Returns a new result representing successful validation of both rules, or failure or either.
- other
Another result to be composed with this one.
- returns
The resulting instance of com.wix.accord.Result.
- abstract def isFailure: Boolean
Returns
true
if this result represents a failed validation,false
otherwise. - abstract def isSuccess: Boolean
Returns
true
if this result represents a successful validationfalse
otherwise. - abstract def map(f: (Set[Violation]) ⇒ Set[Violation]): Result
Maps over all violations contained in this result (if any).
Maps over all violations contained in this result (if any).
- f
A function that transforms a set of violations.
- returns
The result after the transformation is applied.
- abstract def or(other: Result): Result
Returns a new result representing successful validation of either rule, or failure or both.
Returns a new result representing successful validation of either rule, or failure or both.
- other
Another result to be composed with this one.
- returns
The resulting instance of com.wix.accord.Result.
- abstract def toFailure: Option[Failure]
Returns a projection of this result as an optional failure.
Returns a projection of this result as an optional failure.
- returns
None if this result represents a success, a wrapped com.wix.accord.Failure otherwise.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- @native() @throws(classOf[java.lang.InterruptedException])