public class TimestampAdapter extends java.lang.Object implements Adapter<java.util.Date,java.lang.Long>
| Constructor and Description |
|---|
TimestampAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
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.Long aLong)
Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
|
public java.util.Date to(java.lang.Long aLong)
AdapterCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.