public class ReversedAdapter<A,B> extends Object implements Adapter<A,B>
Constructor and Description |
---|
ReversedAdapter(Adapter<B,A> delegate) |
Modifier and Type | Method and Description |
---|---|
B |
from(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.
|
A |
to(B b)
Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
|
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.