Interface FieldDiscoverer.FieldCollector<I,V>
- Type Parameters:
I
- intermediate typeV
- container type
- Enclosing interface:
- FieldDiscoverer<I>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A collector for the necessary metadata for fields.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(String name, AnnotatedType type, AnnotatedElement annotations, FieldData.Deserializer<I> deserializer, CheckedFunction<V, @Nullable Object, Exception> serializer) Accept metadata that defines a specific field.
-
Method Details
-
accept
void accept(String name, AnnotatedType type, AnnotatedElement annotations, FieldData.Deserializer<I> deserializer, CheckedFunction<V, @Nullable Object, Exception> serializer) Accept metadata that defines a specific field.- Parameters:
name
- nametype
- declared field type, as resolved as possibleannotations
- combined element containing all annotations applicable to the fielddeserializer
- a function to populate the intermediate state with a single deserialized field value.serializer
- a function to extract a value from a completed object instance.- Since:
- 4.0.0
-