Top Description Methods
jakarta.validation.metadata

public Interface ContainerElementTypeDescriptor

extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor
Imports
jakarta.validation.Valid

Describes a validated container element type, e.g. the element type of List if it hosts at least one constraint or is marked with Valid.
Author
Guillaume Smet
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the container class hosting this container element type
getContainerClass
()

Returns the container class hosting this container element type.

public Integer

Returns:

the index of the type argument corresponding to this container element type
getTypeArgumentIndex
()

Returns the index of the type argument corresponding to this container element type.

Inherited from jakarta.validation.metadata.CascadableDescriptor:
getGroupConversionsisCascaded
Inherited from jakarta.validation.metadata.ContainerDescriptor:
getConstrainedContainerElementTypes
Inherited from jakarta.validation.metadata.ElementDescriptor:
findConstraintsgetConstraintDescriptorsgetElementClasshasConstraints

Method Detail

getContainerClassback to summary
public Class<?> getContainerClass()

Returns the container class hosting this container element type.

Returns:Class<?>

the container class hosting this container element type

getTypeArgumentIndexback to summary
public Integer getTypeArgumentIndex()

Returns the index of the type argument corresponding to this container element type.

Returns:Integer

the index of the type argument corresponding to this container element type