public class GenericConstraintDef<A extends java.lang.annotation.Annotation> extends ConstraintDef<GenericConstraintDef<A>,A>
ConstraintDef
class which can be used to configure any constraint
type. For this purpose the class defines a generic method
param(String, Object)
which allows to add
arbitrary constraint parameters.Constructor and Description |
---|
GenericConstraintDef(java.lang.Class<A> constraintType) |
Modifier and Type | Method and Description |
---|---|
GenericConstraintDef<A> |
param(java.lang.String key,
java.lang.Object value) |
groups, message, payload
addAnnotationAsParameter, addParameter, toString
public GenericConstraintDef(java.lang.Class<A> constraintType)
public GenericConstraintDef<A> param(java.lang.String key, java.lang.Object value)
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved