Class Validate
java.lang.Object
de.svenkubiak.jpushover.utils.Validate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckArgument(boolean expression, Object errorMessage) Ensures the truth of an expression involving one or more parameters to the calling method.
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
checkArgument
Ensures the truth of an expression involving one or more parameters to the calling method.- Parameters:
expression- a boolean expressionerrorMessage- the exception message to use if the check fails; will be converted to a string usingString.valueOf(Object)- Throws:
IllegalArgumentException- ifexpressionis false
-