Package org.jclouds.predicates
Class Validator<T>
java.lang.Object
org.jclouds.predicates.Validator<T>
- Type Parameters:
T- Type of object to be validated. For generic validation (where object's class is determined invalidate(Object), useObject.
- All Implemented Interfaces:
com.google.common.base.Predicate<T>,Predicate<T>
- Direct Known Subclasses:
AllLowerCaseValidator,AzureNameValidator,BlockIdValidator,BucketNameValidator,DescriptionValidator,DnsNameValidator,FilesystemBlobKeyValidator,FilesystemContainerNameValidator,PartSizeValidator,PayloadValidator,VaultNameValidator
Abstract class that creates a bridge between
Predicate
and ParamValidatorss.- See Also:
-
Constructor Details
-
Validator
public Validator()
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Predicate<T>
-
test
-
validate
Validates the parameter- Parameters:
t- parameter to be validated- Throws:
IllegalArgumentException- if validation failed
-