TemporalDateSwap
@Deprecated public class DateMapSwap extends PojoSwap<Date,Map>
Constructor and Description |
---|
DateMapSwap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map |
swap(BeanSession session,
Date o)
Deprecated.
|
Date |
unswap(BeanSession session,
Map o,
ClassMeta<?> hint)
Deprecated.
|
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
public DateMapSwap()
public Map swap(BeanSession session, Date o)
public Date unswap(BeanSession session, Map o, ClassMeta<?> hint) throws Exception
unswap
in class PojoSwap<Date,Map>
session
- The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.o
- The transformed object.hint
- If possible, the parser will try to tell you the object type being created.
For example, on a serialized date, this may tell you that the object being created must be of type
GregorianCalendar
.
Exception
- If this method is not implemented.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.