| Package | Description |
|---|---|
| ch.trick17.betterchecks | |
| ch.trick17.betterchecks.fluent |
Contains all fluent check classes, like
IntCheck,
StringCheck and many more. |
| Modifier and Type | Method and Description |
|---|---|
static NumberCheck |
CompactChecks.check(Number argument)
|
static NumberCheck |
Check.that(Number argument)
Returns a
NumberCheck which can be use to check various
properties of a Number, e.g. |
| Modifier and Type | Method and Description |
|---|---|
NumberCheck |
NumberCheck.is(Number number)
Checks that the argument is equal (equivalent) to the given
Number, throwing an exception otherwise. |
NumberCheck |
NumberCheck.isBetween(Number min,
Number max)
Checks that the
Number argument is greater than or equal to
min and less than or equal to max, throwing an
exception otherwise. |
NumberCheck |
NumberCheck.isGreaterThan(Number number)
Checks that the argument is (strictly) greater than the given
Number, throwing an exception otherwise. |
NumberCheck |
NumberCheck.isLessThan(Number number)
Checks that the argument is (strictly) less than the given
Number
, throwing an exception otherwise. |
NumberCheck |
NumberCheck.isNegative()
Checks that the argument is negative, throwing an exception otherwise.
|
NumberCheck |
NumberCheck.isPositive()
Checks that the argument is positive, throwing an exception otherwise.
|
Copyright © 2012–2017 Michael Faes. All rights reserved.