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.
@FunctionalInterface public static interface FieldDiscoverer.FieldCollector<I,V>
A collector for the necessary metadata for fields.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(java.lang.String name, java.lang.reflect.AnnotatedType type, java.lang.reflect.AnnotatedElement annotations, FieldData.Deserializer<I> deserializer, CheckedFunction<V,@Nullable java.lang.Object,java.lang.Exception> serializer)
Accept metadata that defines a specific field.
-
-
-
Method Detail
-
accept
void accept(java.lang.String name, java.lang.reflect.AnnotatedType type, java.lang.reflect.AnnotatedElement annotations, FieldData.Deserializer<I> deserializer, CheckedFunction<V,@Nullable java.lang.Object,java.lang.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
-
-