E - the enum key type of this marshallerpublic class EnumMapMarshaller<E extends Enum<E>> extends Object implements ProtoStreamMarshaller<EnumMap<E,Object>>
EnumMap.| Constructor and Description |
|---|
EnumMapMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends EnumMap<E,Object>> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
EnumMap<E,Object> |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
EnumMap<E,Object> map)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic EnumMap<E,Object> readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<EnumMap<E extends Enum<E>,Object>>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, EnumMap<E,Object> map) throws IOException
MarshallablewriteTo in interface Marshallable<EnumMap<E extends Enum<E>,Object>>writer - a ProtoStream writermap - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends EnumMap<E,Object>> getJavaClass()
MarshallableCopyright © 2021 JBoss by Red Hat. All rights reserved.