| Package | Description |
|---|---|
| ch.trick17.betterchecks | |
| ch.trick17.betterchecks.fluent |
Contains all fluent check classes, like
IntCheck,
StringCheck and many more. |
| Modifier and Type | Field and Description |
|---|---|
static String |
Config.CLEAN_STACK_TRACES_ENABLED_KEY
The key for disabling stack trace cleaning in the config file:
"cleanStackTraces" (without quotes). |
static String |
Config.CONFIG_BASE_NAME
The base name of the config file for this library:
"better-checks-config" |
static String |
Config.DEFAULT_ARG_NAME_KEY
The key for setting the default argument name in the config file:
"defaultArgumentName" (without quotes). |
| Modifier and Type | Method and Description |
|---|---|
static UrlCheck |
CompactChecks.check(URL argument)
See
Check.that(URL) |
static UrlCheck |
Check.that(URL argument)
|
| Modifier and Type | Method and Description |
|---|---|
C |
ObjectBaseCheck.isInstanceOf(Class<?> type)
Checks that the argument is an instance of the given type, throwing an
exception otherwise.
|
StringCheck |
StringCheck.isUrl()
Checks that the string argument is is a valid URL, throwing an exception
otherwise.
|
UrlCheck |
StringCheck.isUrlWhich()
First checks that the string argument is a valid URL and then "converts"
this check into an
UrlCheck and returns it. |
StringCheck |
StringCheck.matches(Pattern regex)
Checks that the string argument matches the given compiled regular
expression pattern, throwing an exception otherwise.
|
Copyright © 2012–2017 Michael Faes. All rights reserved.