Annotation Interface ExtractedValue
Marks the type parameter of a generic container type to which a
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.
- Since:
- 2.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>The type of the value extracted by theValueExtractor.
-
Element Details
-
type
Class<?> typeThe type of the value extracted by theValueExtractor. 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
ExtractedValueis defined on the type parameter of a generic container type. AValueExtractorDefinitionExceptionwill be thrown in this case.- Returns:
- the type of the value extracted by the value extractor
- Default:
- void.class
-