public class EnumSetMarshaller<E extends Enum<E>> extends Object implements ProtoStreamMarshaller<EnumSet<E>>
| Constructor and Description |
|---|
EnumSetMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends EnumSet<E>> |
getJavaClass() |
EnumSet<E> |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
EnumSet<E> set)
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,
EnumSet<E> set) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic EnumSet<E> readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<EnumSet<E extends Enum<E>>>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
EnumSet<E> set)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<EnumSet<E extends Enum<E>>>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, EnumSet<E> set)
PredictableCopyright © 2020 JBoss by Red Hat. All rights reserved.