E - the enum type of this marshallerpublic class TypedEnumMarshaller<E extends Enum<E>> extends Object implements FieldMarshaller<E>
| Constructor and Description |
|---|
TypedEnumMarshaller(ScalarMarshaller<Class<?>> type) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends E> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
org.infinispan.protostream.descriptors.WireType |
getWireType()
Returns the wire type of the scalar value written by this marshaller.
|
E |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
E value)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic TypedEnumMarshaller(ScalarMarshaller<Class<?>> type)
public E readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<E extends Enum<E>>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, E value) throws IOException
MarshallablewriteTo in interface Marshallable<E extends Enum<E>>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends E> getJavaClass()
MarshallablegetJavaClass in interface Marshallable<E extends Enum<E>>public org.infinispan.protostream.descriptors.WireType getWireType()
FieldMarshallergetWireType in interface FieldMarshaller<E extends Enum<E>>Copyright © 2021 JBoss by Red Hat. All rights reserved.