Class JohnzonJsonbAdapter<JsonType,OriginalType>
- java.lang.Object
- 
- org.apache.johnzon.jsonb.converter.JohnzonJsonbAdapter<JsonType,OriginalType>
 
- 
- All Implemented Interfaces:
- Adapter<OriginalType,JsonType>,- MapperConverter,- TypeAwareAdapter<OriginalType,JsonType>
 
 public class JohnzonJsonbAdapter<JsonType,OriginalType> extends Object implements TypeAwareAdapter<OriginalType,JsonType> 
- 
- 
Field SummaryFields Modifier and Type Field Description private jakarta.json.bind.adapter.JsonbAdapter<OriginalType,JsonType>delegateprivate Typefromprivate AdapterKeykeyprivate Typeto
 - 
Constructor SummaryConstructors Constructor Description JohnzonJsonbAdapter(jakarta.json.bind.adapter.JsonbAdapter<OriginalType,JsonType> delegate, Type from, Type to)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonTypefrom(OriginalType obj)Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.TypegetFrom()AdapterKeygetKey()TypegetTo()OriginalTypeto(JsonType obj)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
 
- 
- 
- 
Field Detail- 
delegateprivate final jakarta.json.bind.adapter.JsonbAdapter<OriginalType,JsonType> delegate 
 - 
fromprivate final Type from 
 - 
toprivate final Type to 
 - 
keyprivate final AdapterKey key 
 
- 
 - 
Constructor Detail- 
JohnzonJsonbAdapterpublic JohnzonJsonbAdapter(jakarta.json.bind.adapter.JsonbAdapter<OriginalType,JsonType> delegate, Type from, Type to) 
 
- 
 - 
Method Detail- 
topublic OriginalType to(JsonType obj) Description copied from interface:AdapterTransfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.- Specified by:
- toin interface- Adapter<JsonType,OriginalType>
- Parameters:
- obj- the JSON type
- Returns:
- the equivalent Java type
 
 - 
frompublic JsonType from(OriginalType obj) Description copied from interface:AdapterTake the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.- Specified by:
- fromin interface- Adapter<JsonType,OriginalType>
- Parameters:
- obj- the Java type
- Returns:
- the equivalent JSON type
 
 - 
getKeypublic AdapterKey getKey() - Specified by:
- getKeyin interface- TypeAwareAdapter<JsonType,OriginalType>
 
 - 
getTopublic Type getTo() - Specified by:
- getToin interface- TypeAwareAdapter<JsonType,OriginalType>
 
 - 
getFrompublic Type getFrom() - Specified by:
- getFromin interface- TypeAwareAdapter<JsonType,OriginalType>
 
 
- 
 
-