@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.
Copyright © 2020 JBoss by Red Hat. All rights reserved.