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 Summary
Constructors Constructor Description DateWithCopyConverter(Adapter<java.util.Date,java.lang.String> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
from(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.Date
to(java.lang.String s)
Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
-
-
Field Detail
-
delegate
private final Adapter<java.util.Date,java.lang.String> delegate
-
-
Constructor Detail
-
DateWithCopyConverter
public DateWithCopyConverter(Adapter<java.util.Date,java.lang.String> delegate)
-
-
Method Detail
-
to
public java.util.Date to(java.lang.String s)
Description copied from interface:Adapter
Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
from
public java.lang.String from(java.util.Date date)
Description copied from interface:Adapter
Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.
-
-