Validation helper
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
checkParams(java.lang.String name, java.util.Map<java.lang.String, ?> params, java.util.Map<java.lang.String, ?> valid)Valid a method named parameters map |
|
static void |
checkParams(java.lang.String name, java.util.Map<java.lang.String, ?> params, java.util.List<java.lang.String> valid)Verify that all method named parameters are included in the provided list |
|
static void |
checkParams(java.lang.String name, java.util.Map<java.lang.String, ?> params, java.lang.String... valid)Verify that all method named parameters are included in the provided list |
|
static boolean |
isValid(java.lang.Object value, java.lang.Object range)Check if the provide value is included in the specified range |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Valid a method named parameters map
name - The name of the method, only in the error reported messageparams - The actual parameters mapvalid - A map providing for each parameter name the valid valuesVerify that all method named parameters are included in the provided list
name - The method name used in the reported error messageparams - The list of accepted named parametersvalid - The list of accepted parameter namesVerify that all method named parameters are included in the provided list
name - The method name used in the reported error messageparams - The list of accepted named parametersvalid - The list of accepted parameter namesCheck if the provide value is included in the specified range
value - A value to verifyrange - The range it may be a java.lang.Class a java.util.Collection of values, a regexp java.util.regex.Pattern or a specific valuetrue is the match is satisfied or false otherwise