A
- B
- public interface Adapter<A,B> extends MapperConverter
Converter
.
The main difference is that a Converter always converts from/to a String.
An adapter might e.g. convert to a Date or any other Object which will
then be json-ified.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–2018 The Apache Software Foundation. All rights reserved.