Class EnumMarshallerDelegate<T extends Enum<T>>
java.lang.Object
org.infinispan.protostream.impl.BaseMarshallerDelegate<T>
org.infinispan.protostream.impl.EnumMarshallerDelegate<T>
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnumMarshallerDelegate(EnumMarshaller<T> enumMarshaller, EnumDescriptor enumDescriptor) -
Method Summary
Modifier and TypeMethodDescriptiondecode(int expectedTag, int enumValue, UnknownFieldSet unknownFieldSet) voidGets the wrapped marshaller.voidmarshall(ProtobufTagMarshaller.WriteContext ctx, FieldDescriptor fd, T value) Marshalls an object.Unmarshalls an object.
-
Field Details
-
enumMarshaller
-
definedValues
-
-
Constructor Details
-
EnumMarshallerDelegate
EnumMarshallerDelegate(EnumMarshaller<T> enumMarshaller, EnumDescriptor enumDescriptor)
-
-
Method Details
-
getMarshaller
Description copied from class:BaseMarshallerDelegateGets the wrapped marshaller.- Specified by:
getMarshallerin classBaseMarshallerDelegate<T extends Enum<T>>- Returns:
- the wrapped marshaller instance
-
marshall
public void marshall(ProtobufTagMarshaller.WriteContext ctx, FieldDescriptor fd, T value) throws IOException Description copied from class:BaseMarshallerDelegateMarshalls an object.- Specified by:
marshallin classBaseMarshallerDelegate<T extends Enum<T>>- Parameters:
ctx- operation contextfd- theFieldDescriptorof the field being marshalled ornullif this is a top-level objectvalue- the value being marshalled (cannot benull)- Throws:
IOException- if marshalling fails for some reason
-
encode
- Throws:
IOException
-
unmarshall
Description copied from class:BaseMarshallerDelegateUnmarshalls an object.- Specified by:
unmarshallin classBaseMarshallerDelegate<T extends Enum<T>>- Parameters:
ctx- operation contextfd- theFieldDescriptorof the field being unmarshalled ornullif this is a top-level object- Throws:
IOException- if unmarshalling fails for some reason
-
decode
-