Module org.apache.johnzon.mapper
Class ReversedAdapter<A,B>
- java.lang.Object
-
- org.apache.johnzon.mapper.converter.ReversedAdapter<A,B>
-
- All Implemented Interfaces:
Adapter<A,B>,MapperConverter
public class ReversedAdapter<A,B> extends java.lang.Object implements Adapter<A,B>
-
-
Constructor Summary
Constructors Constructor Description ReversedAdapter(Adapter<B,A> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bfrom(A a)Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.Ato(B b)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-