public class EnumerationSwap extends PojoSwap<Enumeration,List>
Enumerations
to List<Object>
objects.
This is a one-way transform, since Enumerations
cannot be reconstituted.
Constructor and Description |
---|
EnumerationSwap() |
Modifier and Type | Method and Description |
---|---|
List |
swap(BeanSession session,
Enumeration o)
Converts the specified
Enumeration to a List . |
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
public EnumerationSwap()
public List swap(BeanSession session, Enumeration o)
Enumeration
to a List
.swap
in class PojoSwap<Enumeration,List>
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 object to be transformed.Copyright © 2018 Apache. All rights reserved.