Class MonthAdapter$___Marshaller_c409c149b27332de7c8d88677a12d4136e468c61088296228688c531f047e597
java.lang.Object
org.infinispan.protostream.types.java.time.MonthAdapter$___Marshaller_c409c149b27332de7c8d88677a12d4136e468c61088296228688c531f047e597
- All Implemented Interfaces:
BaseMarshaller<Month>,EnumMarshaller<Month>
public final class MonthAdapter$___Marshaller_c409c149b27332de7c8d88677a12d4136e468c61088296228688c531f047e597
extends Object
implements EnumMarshaller<Month>
-
Field Summary
Fields inherited from interface org.infinispan.protostream.BaseMarshaller
EMPTY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiondecode(int $1) Decodes an integer enum value read from a Protobuf encoded stream into a Java enum instance.intEncodes a JavaEnuminto its corresponding Protobuf numeric value.Returns the Java type handled by this marshaller.Returns the full name of the message or enum type, defined in a proto file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.protostream.BaseMarshaller
getSubClassNames
-
Constructor Details
-
MonthAdapter$___Marshaller_c409c149b27332de7c8d88677a12d4136e468c61088296228688c531f047e597
public MonthAdapter$___Marshaller_c409c149b27332de7c8d88677a12d4136e468c61088296228688c531f047e597()
-
-
Method Details
-
getJavaClass
Description copied from interface:BaseMarshallerReturns the Java type handled by this marshaller. This must not change over multiple invocations.- Specified by:
getJavaClassin interfaceBaseMarshaller<Month>- Returns:
- the Java type.
-
getTypeName
Description copied from interface:BaseMarshallerReturns the full name of the message or enum type, defined in a proto file. This must not change over multiple invocations.- Specified by:
getTypeNamein interfaceBaseMarshaller<Month>- Returns:
- the full name of the message or enum type, defined in a proto file.
-
decode
Description copied from interface:EnumMarshallerDecodes an integer enum value read from a Protobuf encoded stream into a Java enum instance.If the numeric value is not recognized the method must return
nullto signal this to the library and allow the unrecognized data to be preserved. No exception should be thrown in this case.- Specified by:
decodein interfaceEnumMarshaller<Month>- Parameters:
$1- the Protobuf enum value to decode- Returns:
- a Java
Enuminstance if the value is recognized ornullotherwise.
-
encode
Description copied from interface:EnumMarshallerEncodes a JavaEnuminto its corresponding Protobuf numeric value.- Specified by:
encodein interfaceEnumMarshaller<Month>- Parameters:
$1- anEnuminstance- Returns:
- the corresponding numeric value from the Protobuf definition of the enum.
- Throws:
IllegalArgumentException- if the given Enum argument is of an unexpected type or its value has no correspondence to a Protobuf enum value (this is a programming error, not a schema evolution issue).
-