The string constraints.
Attributes
- Companion
- trait
- Source
- Validation.scala
- Graph
-
- Supertypes
- Self type
-
String.type
Members list
Type members
Classlikes
The string is empty or holds only whitespace (it is empty after trim).
The string is empty or holds only whitespace (it is empty after trim).
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
- Self type
-
Blank.type
The string has no characters.
The string has no characters.
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
- Self type
-
Empty.type
The length of the string is at least min and at most max; None leaves that side open.
The length of the string is at least min and at most max; None leaves that side open.
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
The string holds a character other than whitespace (it is not empty after trim).
The string holds a character other than whitespace (it is not empty after trim).
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
- Self type
-
NonBlank.type
The string has at least one character.
The string has at least one character.
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
- Self type
-
NonEmpty.type
The whole string matches the regular expression regex. It is checked with String#matches, so the pattern needs no ^ or $.
The whole string matches the regular expression regex. It is checked with String#matches, so the pattern needs no ^ or $.
Attributes
- Source
- Validation.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Stringtrait Validation[String]class Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements.
The name of the type.