public class CustomValidator<A extends Annotation,V,E extends Exception> extends Object implements Validator<A,V,E>
| Constructor and Description |
|---|
CustomValidator(Class<A> annotation,
Class<V> type,
org.panda_lang.utilities.commons.function.ThrowingQuadFunction<Context,A,org.panda_lang.utilities.inject.InjectorProperty,V,Boolean,E> function) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Class<A> |
getAnnotation() |
@Nullable Class<V> |
getType() |
boolean |
validate(Context context,
A annotation,
org.panda_lang.utilities.inject.InjectorProperty parameter,
V value) |
public boolean validate(Context context, A annotation, org.panda_lang.utilities.inject.InjectorProperty parameter, V value) throws E extends Exception
@Nullable public @Nullable Class<A> getAnnotation()
getAnnotation in interface Validator<A extends Annotation,V,E extends Exception>Copyright © 2021. All rights reserved.