public class TypedEnumMarshaller<E extends Enum<E>> extends Object implements ProtoStreamMarshaller<E>
| Constructor and Description |
|---|
TypedEnumMarshaller(ProtoStreamMarshaller<Class<?>> typeMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends E> |
getJavaClass() |
E |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
E value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
E value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic TypedEnumMarshaller(ProtoStreamMarshaller<Class<?>> typeMarshaller)
public E readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<E extends Enum<E>>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
E value)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<E extends Enum<E>>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, E value)
Predictablesize in interface Predictable<E extends Enum<E>>context - the serialization contextvalue - the value to be marshalled.Copyright © 2020 JBoss by Red Hat. All rights reserved.