| Package | Description |
|---|---|
| net.pterodactylus.util.validation |
| Modifier and Type | Method and Description |
|---|---|
static Validation |
Validation.begin()
Returns a new
Validation object. |
Validation |
Validation.check()
Checks if one of the previous checks failed and throws an
IllegalArgumentException if a previous check did fail. |
Validation |
Validation.is(String objectName,
boolean value)
Checks if the given value is
true. |
<T> Validation |
Validation.isAll(String objectName,
T object,
T... expecteds)
Checks whether the given
object matches all of the
expecteds values. |
<T> Validation |
Validation.isEither(String objectName,
T object,
T... expecteds)
Checks whether the given
object matches any of the expecteds values. |
<T> Validation |
Validation.isEqual(String objectName,
T value,
T expected)
Checks if the given value is equal to the expected value.
|
Validation |
Validation.isGreater(String objectName,
double value,
double lowerBound)
Checks if
value is greater than lowerBound. |
Validation |
Validation.isGreater(String objectName,
long value,
long lowerBound)
Checks if
value is greater than lowerBound. |
Validation |
Validation.isGreaterOrEqual(String objectName,
double value,
double lowerBound)
Checks if
value is greater than lowerBound. |
Validation |
Validation.isGreaterOrEqual(String objectName,
long value,
long lowerBound)
Checks if
value is greater than lowerBound. |
Validation |
Validation.isInstanceOf(String objectName,
Object object,
Class<?> clazz)
Checks whether the given object is assignable to an object of the given
class.
|
Validation |
Validation.isLess(String objectName,
double value,
double upperBound)
Checks if
value is less than upperBound. |
Validation |
Validation.isLess(String objectName,
long value,
long upperBound)
Checks if
value is less than upperBound. |
Validation |
Validation.isLessOrEqual(String objectName,
double value,
double upperBound)
Checks if
value is less than upperBound. |
Validation |
Validation.isLessOrEqual(String objectName,
long value,
long upperBound)
Checks if
value is less than upperBound. |
Validation |
Validation.isNegative(String objectName,
double value)
Checks if the given value is less than
0. |
Validation |
Validation.isNegative(String objectName,
long value)
Checks if the given value is less than
0. |
Validation |
Validation.isNot(String objectName,
boolean value)
Checks if the given value is
false. |
<T> Validation |
Validation.isNotEqual(String objectName,
T value,
T expected)
Checks if the given value is not equal to the expected value.
|
<T> Validation |
Validation.isNotNull(String objectName,
T object)
Checks if the given object is not
null. |
<T> Validation |
Validation.isNull(String objectName,
T object)
Checks if the given object is
null. |
Validation |
Validation.isPositive(String objectName,
double value)
Checks if the given value is greater to or equal to
0. |
Validation |
Validation.isPositive(String objectName,
long value)
Checks if the given value is greater to or equal to
0. |
<T> Validation |
Validation.isSame(String objectName,
T value,
T expected)
Checks if the given value is the same as the expected value.
|
Copyright © 2026. All rights reserved.