org.jboss.errai.marshalling.server.marshallers
Class DefaultEnumMarshaller
java.lang.Object
org.jboss.errai.marshalling.server.marshallers.DefaultEnumMarshaller
- All Implemented Interfaces:
- Marshaller<Enum>
public class DefaultEnumMarshaller
- extends Object
- implements Marshaller<Enum>
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEnumMarshaller
public DefaultEnumMarshaller(Class enumType)
demarshall
public Enum demarshall(EJValue a0,
MarshallingSession a1)
- Specified by:
demarshall
in interface Marshaller<Enum>
marshall
public String marshall(Enum a0,
MarshallingSession a1)
- Specified by:
marshall
in interface Marshaller<Enum>
getEmptyArray
public Enum[] getEmptyArray()
- Description copied from interface:
Marshaller
- Returns an empty array of the type handled by this marshaller. Useful in conjunction with
List.toArray(T[])
.
- Specified by:
getEmptyArray
in interface Marshaller<Enum>
- Returns:
- a one-dimensional zero-length array of the type handled by this marshaller.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.