public enum AnyMarshaller extends Enum<AnyMarshaller> implements ProtoStreamMarshaller<Any>
Any object.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Any> |
getJavaClass() |
Any |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Any value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
static AnyMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnyMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Any value) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic static final AnyMarshaller INSTANCE
public static AnyMarshaller[] values()
for (AnyMarshaller c : AnyMarshaller.values()) System.out.println(c);
public static AnyMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<? extends Any> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<Any>public Any readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Any>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Any value)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Any>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Any value)
Predictablesize in interface Predictable<Any>context - the serialization contextvalue - the value to be marshalled.Copyright © 2021 JBoss by Red Hat. All rights reserved.