public enum ModuleMarshaller extends Enum<ModuleMarshaller> implements ProtoStreamMarshaller<org.jboss.modules.Module>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends org.jboss.modules.Module> |
getJavaClass() |
org.jboss.modules.Module |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
org.jboss.modules.Module value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
static ModuleMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModuleMarshaller[] |
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,
org.jboss.modules.Module module) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic static final ModuleMarshaller INSTANCE
public static ModuleMarshaller[] values()
for (ModuleMarshaller c : ModuleMarshaller.values()) System.out.println(c);
public static ModuleMarshaller 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 org.jboss.modules.Module readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader)
throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<org.jboss.modules.Module>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
org.jboss.modules.Module module)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<org.jboss.modules.Module>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, org.jboss.modules.Module value)
Predictablesize in interface Predictable<org.jboss.modules.Module>context - the serialization contextvalue - the value to be marshalled.public Class<? extends org.jboss.modules.Module> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<org.jboss.modules.Module>Copyright © 2020 JBoss by Red Hat. All rights reserved.