| 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 IntCheck |
CompactChecks.check(int argument)
See
Check.that(int) |
static IntCheck |
Check.that(int argument)
Returns an
IntCheck which can be use to check various properties
of an int, e.g. |
| Modifier and Type | Method and Description |
|---|---|
IntCheck |
StringCheck.hasLengthWhich()
Creates an
IntCheck property check for the length of the string
argument. |
IntCheck |
PrimitiveArrayCheck.hasLengthWhich()
Creates an
IntCheck property check for the length of the array
argument. |
IntCheck |
ObjectArrayCheck.hasLengthWhich()
Creates an
IntCheck property check for the length of the array
argument. |
IntCheck |
UrlCheck.hasPortWhich()
|
IntCheck |
CollectionCheck.hasSizeWhich()
Creates an
IntCheck property check for the size of the collection
argument. |
protected IntCheck |
ObjectBaseCheck.intPropertyCheck(int property,
String propertyName)
Creates an
int property check for this argument. |
IntCheck |
IntCheck.is(int number)
Checks that the
int argument is equal to the given number,
throwing an exception otherwise. |
IntCheck |
IntCheck.isBetween(int min,
int max)
Checks that the
int argument is greater than or equal to
min and less than or equal to max, throwing an
exception otherwise. |
IntCheck |
IntCheck.isGreaterThan(int number)
Checks that the
int argument is (strictly) greater than the
given number, throwing an exception otherwise. |
IntCheck |
StringCheck.isIntWhich()
First checks that the string argument is a valid
int and
then "converts" this check into an IntCheck and returns it. |
IntCheck |
IntCheck.isLessThan(int number)
Checks that the
long argument is (strictly) less than the
given number, throwing an exception otherwise. |
IntCheck |
IntCheck.isNegative()
Checks that the
int argument is negative, throwing an
exception otherwise. |
IntCheck |
IntCheck.isPositive()
Checks that the
int argument is positive, throwing an
exception otherwise. |
IntCheck |
IntCheck.isValidIndex(Collection<?> collection)
Checks that the
int argument is a valid index for the given
Collection, throwing an exception otherwise. |
IntCheck |
IntCheck.isValidIndex(int size)
Checks that the
int argument is a valid index in a
Collection or array with the given size or length, throwing an
exception otherwise. |
IntCheck |
IntCheck.isValidIndex(Object[] array)
Checks that the
int argument is a valid index for the given
array, throwing an exception otherwise. |
Copyright © 2012–2017 Michael Faes. All rights reserved.