T
- The typepublic static class ArgumentUtils.ArgumentCheck<T> extends Object
Constructor and Description |
---|
ArgumentCheck(ArgumentUtils.Check check) |
ArgumentCheck(String name,
T value) |
Modifier and Type | Method and Description |
---|---|
void |
notNull()
Fail the argument with the given message.
|
void |
orElseFail(String message)
Fail the argument with the given message.
|
public ArgumentCheck(ArgumentUtils.Check check)
check
- The checkpublic void orElseFail(String message)
message
- The messageIllegalArgumentException
- Thrown with the given message if the check failspublic void notNull()
IllegalArgumentException
- Thrown with the given message if the check fails