object Success extends Result with Product with Serializable
An object representing a successful validation result.
- Alphabetic
- By Inheritance
- Success
- Serializable
- Serializable
- Product
- Equals
- Result
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isFailure: Boolean
Returns
true
if this result represents a failed validation,false
otherwise. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSuccess: Boolean
Returns
true
if this result represents a successful validationfalse
otherwise. -
def
map(f: (Set[Violation]) ⇒ Set[Violation]): Success.type
Maps over all violations contained in this result (if 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()
-
def
or(other: Result): Success.type
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()