tinyscalautils.assertions
Members list
Value members
Concrete methods
Checks if an object is null.
Checks if an object is null.
Attributes
- Returns
-
the object itself.
- Throws
-
IllegalArgumentException
if the object is
null
. - Since
-
1.0
- Source
- requirements.scala
Simple argument assertion, with message.
Simple argument assertion, with message.
Attributes
- Throws
-
IllegalArgumentException
if the requirement is not satisfied. Messages are created lazily, either as:
require(cond, s"$variable should be $value")
or:
require(cond, "%s should be %s", variable, value)
The message string cannot be
null
. - Since
-
1.0
- Source
- requirements.scala
Simple argument assertion.
Simple argument assertion.
Attributes
- Throws
-
IllegalArgumentException
if the requirement is not satisfied. Message in the exception is
null
. - Since
-
1.0
- Source
- requirements.scala
Simple state assertion, with message.
Simple state assertion, with message.
Attributes
- Throws
-
IllegalStateException
if the requirement is not satisfied. Messages are created lazily, either as:
require(cond, s"$variable should be $value")
or:
require(cond, "%s should be %s", variable, value)
The message string cannot be
null
. - Since
-
1.0
- Source
- requirements.scala
Simple state assertion.
Simple state assertion.
Attributes
- Throws
-
IllegalStateException
if the requirement is not satisfied. Message in the exception is
null
. - Since
-
1.0
- Source
- requirements.scala
Extensions
Deprecated extensions
Attributes
- Deprecated
-
[Since version 1.5.0]
- Source
- nonEmpty.scala
Logical implication. LHS is always evaluated. RHS is only evaluated if LHS side evaluated to true.
Logical implication. LHS is always evaluated. RHS is only evaluated if LHS side evaluated to true.
Also available as implies
Attributes
- Since
-
1.1
- Deprecated
-
[Since version 1.2]
- Source
- implies.scala
Logical implication. LHS is always evaluated. RHS is only evaluated if LHS side evaluated to true.
Logical implication. LHS is always evaluated. RHS is only evaluated if LHS side evaluated to true.
Attributes
- Since
-
1.1
- Source
- implies.scala