@Deprecated public class CalendarLongSwap extends PojoSwap<Calendar,Long>
Constructor and Description |
---|
CalendarLongSwap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Long |
swap(BeanSession session,
Calendar o)
Deprecated.
|
Calendar |
unswap(BeanSession session,
Long o,
ClassMeta<?> hint)
Deprecated.
|
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
public CalendarLongSwap()
public Long swap(BeanSession session, Calendar o)
public Calendar unswap(BeanSession session, Long o, ClassMeta<?> hint) throws Exception
unswap
in class PojoSwap<Calendar,Long>
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.