@Retention(value=RUNTIME) @Target(value=TYPE_USE) @Documented public @interface ExtractedValue
ValueExtractor
is
tied or specifies the type of the wrapped element(s) of non-generic container types.
Must be given exactly once for a value extractor type.
ValueExtractor
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
type
The type of the value extracted by the
ValueExtractor . |
public abstract Class<?> type
ValueExtractor
. If not set, the type
will be automatically inferred from the type argument of the parameterized type.
Used to define value extractors for non-generic wrapper types e.g.
OptionalInt
.
May not be used when ExtractedValue
is defined on the type parameter of
a generic container type. A ValueExtractorDefinitionException
will be thrown
in this case.
Comments to: bean-validation-dev@eclipse.org.
Copyright © 2019,2020 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.