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 object A from JSON an convert it to B to store in the POJO
|
A |
to(B b)
Transfer B to JSON as A.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.