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