org.hibernate.validator.internal.metadata.descriptor
Class ParameterDescriptorImpl
java.lang.Object
org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
org.hibernate.validator.internal.metadata.descriptor.ParameterDescriptorImpl
- All Implemented Interfaces:
- javax.validation.metadata.ElementDescriptor, ParameterDescriptor
public class ParameterDescriptorImpl
- extends ElementDescriptorImpl
- implements ParameterDescriptor
Describes a validated method parameter.
- Author:
- Gunnar Morling
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
javax.validation.metadata.ElementDescriptor.ConstraintFinder |
|
Method Summary |
int |
getIndex()
Returns this parameter's index within the parameter array of the
method holding it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.validation.metadata.ElementDescriptor |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints |
ParameterDescriptorImpl
public ParameterDescriptorImpl(Class<?> type,
int index,
Set<ConstraintDescriptorImpl<?>> constraints,
boolean isCascaded,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
getIndex
public int getIndex()
- Description copied from interface:
ParameterDescriptor
- Returns this parameter's index within the parameter array of the
method holding it.
- Specified by:
getIndex in interface ParameterDescriptor
- Returns:
- This parameter's index.
Copyright © 2012 Oracle Corporation. All Rights Reserved.