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