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 ParamValidatorss.Predicate| Constructor and Description |
|---|
Validator() |
public boolean apply(@Nullable T t)
apply in interface com.google.common.base.Predicate<T>public abstract void validate(@Nullable T t) throws IllegalArgumentException
t - parameter to be validatedIllegalArgumentException - if validation failedCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.