java.lang.Object
de.s42.base.validation.ValidationHelper
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic boolean
static boolean
static boolean
static boolean
isEmailAddress
(String emailAddress) static boolean
static boolean
static boolean
isGreaterEqual0
(Object value) static boolean
static boolean
static boolean
isMethodName
(String methodName) static boolean
isNotEmptyArray
(Object value) static boolean
static boolean
static boolean
isStringNotBlank
(Object value) static boolean
static boolean
static boolean
static void
isValid
(boolean condition) This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic void
This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic void
isValid
(boolean condition, Supplier<? extends RuntimeException> exceptionSupplier) This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given messagestatic boolean
isVariableName
(String variableName) static boolean
isVariableNameOrNull
(String variableName)
-
Felddetails
-
EMAIL_PATTERN
-
VARIABLE_NAME_PATTERN
-
METHOD_NAME_PATTERN
-
-
Konstruktordetails
-
ValidationHelper
private ValidationHelper()
-
-
Methodendetails
-
isValid
public static void isValid(boolean condition, Supplier<? extends RuntimeException> exceptionSupplier) throws RuntimeException This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition
-exceptionSupplier
-- Löst aus:
IllegalArgumentException
RuntimeException
-
isValid
This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition
-message
-- Löst aus:
IllegalArgumentException
-
isValid
This mesthod allows to check for validity of a condition - otherwise throws a IllegalArgumentException with the given message- Parameter:
condition
-- Löst aus:
IllegalArgumentException
-
isEmailAddress
-
isMethodName
-
isVariableName
-
isVariableNameOrNull
-
isTypeOf
-
isString
-
isStringNotBlank
-
isUUID
-
isURL
-
isFloat
-
isDouble
-
isBoolean
-
isArray
-
isNotEmptyArray
-
isInteger
-
isNumber
-
isGreaterEqual0
-
isLong
-
isEqual
-