play.api.data.validation.Constraint
See theConstraint companion class
object Constraint
This object provides helpers for creating Constraint values.
For example:
val negative = Constraint[Int] {
case i if i < 0 => Valid
case _ => Invalid("Must be a negative number.")
}
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Constraint.type
Members list
In this article