Package de.svenkubiak.jpushover.utils
Class Validate
- java.lang.Object
-
- de.svenkubiak.jpushover.utils.Validate
-
public final class Validate extends Object
- Author:
- svenkubiak
-
-
Constructor Summary
Constructors Constructor Description Validate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkArgument(boolean expression, Object errorMessage)
Ensures the truth of an expression involving one or more parameters to the calling method.
-
-
-
Method Detail
-
checkArgument
public static void checkArgument(boolean expression, Object errorMessage)
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
- ifexpression
is false
-
-