Package org.javers.common.validation
Class Validate
java.lang.Object
org.javers.common.validation.Validate
Set of utils for methods preconditions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidargumentCheck(boolean argumentCondition, String message) static voidargumentIsNotNull(Object argument) static voidargumentIsNotNull(Object argument, String message) Checks if given argument is not null.static voidargumentsAreNotNull(Object... arguments) static voidconditionFulfilled(boolean condition, String message)
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
argumentIsNotNull
Checks if given argument is not null.- Throws:
IllegalArgumentException
-
argumentIsNotNull
- Throws:
IllegalArgumentException
-
argumentsAreNotNull
- Throws:
IllegalArgumentException
-
argumentCheck
- Throws:
IllegalArgumentException
-
conditionFulfilled
- Throws:
IllegalStateException
-