Module org.apache.johnzon.mapper
Class DateWithCopyConverter
- java.lang.Object
- 
- org.apache.johnzon.mapper.converter.DateWithCopyConverter
 
- 
- All Implemented Interfaces:
- Adapter<java.util.Date,java.lang.String>,- MapperConverter
 
 public class DateWithCopyConverter extends java.lang.Object implements Adapter<java.util.Date,java.lang.String> 
- 
- 
Constructor SummaryConstructors Constructor Description DateWithCopyConverter(Adapter<java.util.Date,java.lang.String> delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringfrom(java.util.Date date)Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.java.util.Dateto(java.lang.String s)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
 
- 
- 
- 
Field Detail- 
delegateprivate final Adapter<java.util.Date,java.lang.String> delegate 
 
- 
 - 
Constructor Detail- 
DateWithCopyConverterpublic DateWithCopyConverter(Adapter<java.util.Date,java.lang.String> delegate) 
 
- 
 - 
Method Detail- 
topublic java.util.Date to(java.lang.String s) Description copied from interface:AdapterTransfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
 - 
frompublic java.lang.String from(java.util.Date date) 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.
 
- 
 
-