| 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 DoubleCheck |
CompactChecks.check(double argument)
|
static DoubleCheck |
Check.that(double argument)
Returns a
DoubleCheck which can be use to check various
properties of an double, e.g. |
| Modifier and Type | Method and Description |
|---|---|
DoubleCheck |
DoubleCheck.is(double number)
Checks that the
double argument is equal to the given
number, throwing an exception otherwise. |
DoubleCheck |
DoubleCheck.isBetween(double min,
double max)
Checks that the
double argument is greater than or equal to
min and less than or equal to max, throwing an
exception otherwise. |
DoubleCheck |
DoubleCheck.isGreaterThan(double number)
Checks that the
double argument is (strictly) greater than
the given number, throwing an exception otherwise. |
DoubleCheck |
DoubleCheck.isLessThan(double number)
Checks that the
double argument is (strictly) less than the
given number, throwing an exception otherwise. |
DoubleCheck |
DoubleCheck.isNegative()
Checks that the
double argument is negative, throwing an
exception otherwise. |
DoubleCheck |
DoubleCheck.isNotInfinite()
Checks that the
double argument is not infinite (positive or
negative), throwing an exception otherwise. |
DoubleCheck |
DoubleCheck.isNotNaN()
Checks that the
double argument is not NaN (not a number,
see Double.NaN), throwing an exception otherwise. |
DoubleCheck |
DoubleCheck.isPositive()
Checks that the
double argument is positive, throwing an
exception otherwise. |
Copyright © 2012–2017 Michael Faes. All rights reserved.