Package org.instancio.feed
Annotation Type FeedSpecAnnotations.WithStringMapper
- Enclosing interface:
FeedSpecAnnotations
@ExperimentalApi
@Target(METHOD)
@Retention(RUNTIME)
public static @interface FeedSpecAnnotations.WithStringMapper
Annotation to specify a custom
Function to be used for
converting string values to a specified type.
If a spec method is annotated with both, FeedSpecAnnotations.WithStringMapper
and FeedSpecAnnotations.WithPostProcessor, the mapping is done before
applying the post-processors.
This annotation is ignored when used with:
- Since:
- 5.0.0
-
Required Element Summary
Required Elements
-
Element Details
-
value
Specifies the function class to be used for string conversions.- Returns:
- the mapper class
- Since:
- 5.0.0
-