- java.lang.Object
-
- org.apache.johnzon.mapper.converter.TimestampAdapter
-
- All Implemented Interfaces:
Adapter<java.util.Date,java.lang.Long>,MapperConverter
public class TimestampAdapter extends java.lang.Object implements Adapter<java.util.Date,java.lang.Long>
-
-
Constructor Summary
Constructors Constructor Description TimestampAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Longfrom(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.Long aLong)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
-
-
Method Detail
-
to
public java.util.Date to(java.lang.Long aLong)
Description copied from interface:AdapterTransfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
from
public java.lang.Long 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.
-
-