org.msgpack.template
Class OrdinalEnumTemplate<T>
java.lang.Object
org.msgpack.template.AbstractTemplate<T>
org.msgpack.template.OrdinalEnumTemplate<T>
- All Implemented Interfaces:
- Template<T>
public class OrdinalEnumTemplate<T>
- extends AbstractTemplate<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entries
protected T[] entries
reverse
protected HashMap<T,Integer> reverse
OrdinalEnumTemplate
public OrdinalEnumTemplate(Class<T> targetClass)
write
public void write(Packer pk,
T target,
boolean required)
throws IOException
- Throws:
IOException
read
public T read(Unpacker pac,
T to,
boolean required)
throws IOException,
MessageTypeException
- Throws:
IOException
MessageTypeException
Copyright © 2011. All Rights Reserved.