object string extends StringValidate with StringInference
Module for String
related predicates. Note that most of the predicates
in collection
also work for String
s by treating them as sequences
of Char
s.
- Source
- string.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- string
- StringInference
- StringValidate
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
final
case class
EndsWith
[S](s: S) extends Product with Serializable
Predicate that checks if a
String
ends with the suffixS
. -
final
case class
MatchesRegex
[S](s: S) extends Product with Serializable
Predicate that checks if a
String
matches the regular expressionS
. -
final
case class
Regex
() extends Product with Serializable
Predicate that checks if a
String
is a valid regular expression. -
final
case class
StartsWith
[S](s: S) extends Product with Serializable
Predicate that checks if a
String
starts with the prefixS
. -
final
case class
Uri
() extends Product with Serializable
Predicate that checks if a
String
is a valid URI. -
final
case class
Url
() extends Product with Serializable
Predicate that checks if a
String
is a valid URL. -
final
case class
Uuid
() extends Product with Serializable
Predicate that checks if a
String
is a valid UUID. -
final
case class
XPath
() extends Product with Serializable
Predicate that checks if a
String
is a valid XPath expression. -
final
case class
Xml
() extends Product with Serializable
Predicate that checks if a
String
is well-formed XML.
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
- @throws( ... )
-
implicit
def
endsWithInference[A <: String, B <: String](implicit wa: Aux[A], wb: Aux[B]): ==>[EndsWith[A], EndsWith[B]]
- Definition Classes
- StringInference
-
implicit
def
endsWithValidate[S <: String](implicit ws: Aux[S]): Plain[String, EndsWith[S]]
- Definition Classes
- StringValidate
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
matchesRegexValidate[S <: String](implicit ws: Aux[S]): Plain[String, MatchesRegex[S]]
- Definition Classes
- StringValidate
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
regexValidate: Plain[String, Regex]
- Definition Classes
- StringValidate
-
implicit
def
startsWithInference[A <: String, B <: String](implicit wa: Aux[A], wb: Aux[B]): ==>[StartsWith[A], StartsWith[B]]
- Definition Classes
- StringInference
-
implicit
def
startsWithValidate[S <: String](implicit ws: Aux[S]): Plain[String, StartsWith[S]]
- Definition Classes
- StringValidate
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
uriValidate: Plain[String, Uri]
- Definition Classes
- StringValidate
-
implicit
def
urlValidate: Plain[String, Url]
- Definition Classes
- StringValidate
-
implicit
def
uuidValidate: Plain[String, Uuid]
- Definition Classes
- StringValidate
-
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( ... )
-
implicit
def
xmlValidate: Plain[String, Xml]
- Definition Classes
- StringValidate
-
implicit
def
xpathValidate: Plain[String, XPath]
- Definition Classes
- StringValidate