@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| 修飾子とタイプ | 任意要素と説明 |
|---|---|
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 © 2007-2018 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0. Translated by @megascus.