mazboot-core
mazboot-core
mazboot
ValidationError
mazboot.validations
EqualsTo
FromPredicate
FromPredicate
FromPredicate0
Validation
given_Of_Valid
Error
given_FromString_Valid
Validation
Of
mazboot-core
/
mazboot.validations
/
EqualsTo
EqualsTo
open
class
EqualsTo
[A](a:
A
) extends
FromPredicate
[
A
]
checks if a value equals to the specified reference
Graph
Supertypes
class
FromPredicate
[
A
]
class
FromPredicate0
[
A
]
trait
Validation
[
A
]
class
Object
trait
Matchable
class
Any
Type members
Value members
Givens
Type members
Inherited classlikes
final case
class
Error
(raw:
Raw
)
Inherited from
Validation
Inherited types
override
opaque type
Valid
Inherited from
FromPredicate0
Value members
Inherited methods
def
and
[Valid2 <:
A
](that:
Aux
[
A
, Valid2]):
Aux
[
A
,
Valid
& Valid2]
Inherited from
FromPredicate
protected
def
formatErrorMessage
(raw:
A
):
String
Inherited from
FromPredicate0
def
negate
:
FromPredicate
[
A
]
Inherited from
FromPredicate
def
or
[Valid2 <:
A
](that:
Aux
[
A
, Valid2]):
Aux
[
A
,
Valid
| Valid2]
Inherited from
FromPredicate
final
def
unapply
(raw:
A
):
Option
[
Valid
]
Inherited from
Validation
final
def
validate
(raw:
A
):
Error
|
Valid
Inherited from
Validation
final
def
validateEither
(raw:
A
):
Either
[
Error
,
Valid
]
Inherited from
Validation
final
def
validateWith
[A](raw:
A
, handleSuccess:
Valid
=> A, handleError:
Error
=> A): A
Inherited from
FromPredicate0
Inherited fields
val
predicate
:
A
=>
Boolean
Inherited from
FromPredicate0
val
predicateName
:
String
Inherited from
FromPredicate0
Givens
Inherited givens
given
given_FromString_Valid
(using val Raw:
FromString
[
Raw
]):
FromString
[
Valid
]
Inherited from
Validation
given
given_Of_Valid
:
Of
[
Valid
]
Inherited from
Validation