T
- Type of object to be validated. For generic
validation (where object's class is determined in validate(Object)
,
use Object
.public abstract class Validator<T> extends Object implements com.google.common.base.Predicate<T>
Predicate
and ParamValidators
s.Predicate
Constructor and Description |
---|
Validator() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(T t) |
boolean |
test(T t) |
abstract void |
validate(T t)
Validates the parameter
|
public abstract void validate(@Nullable T t) throws IllegalArgumentException
t
- parameter to be validatedIllegalArgumentException
- if validation failedCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.