T - the type mapped by this Adapter.public interface Adapter<T extends org.eclipse.ditto.model.base.json.Jsonifiable>
| Modifier and Type | Method and Description |
|---|---|
T |
fromAdaptable(Adaptable adaptable)
Maps the given
adaptable to it's corresponding T. |
default Adaptable |
toAdaptable(T t)
|
Adaptable |
toAdaptable(T t,
TopicPath.Channel channel)
Maps the given
t to it's corresponding Adaptable. |
T fromAdaptable(Adaptable adaptable)
adaptable to it's corresponding T.adaptable - the adaptable to map.NullPointerException - if adaptable is null.default Adaptable toAdaptable(T t)
t - the object to map.NullPointerException - if t is null.Adaptable toAdaptable(T t, TopicPath.Channel channel)
t to it's corresponding Adaptable.t - the object to map.channel - the Channel (Twin/Live) to use.NullPointerException - if t is null.IllegalArgumentException - if channel is unknown.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.