Class PeriodMarshaller

  • All Implemented Interfaces:
    org.infinispan.protostream.BaseMarshaller<Period>, org.infinispan.protostream.ProtobufTagMarshaller<Period>, Marshallable<Period>, ProtoStreamMarshaller<Period>

    public class PeriodMarshaller
    extends Object
    implements ProtoStreamMarshaller<Period>
    Marshaller for Period instances, using the following strategy:
    1. Marshal Period.ZERO as zero bytes
    2. Marshal number of years of period as signed integer
    3. Marshal number of months of period as signed integer
    4. Marshal number of days of period as signed integer
    Author:
    Paul Ferraro
    • Constructor Detail

      • PeriodMarshaller

        public PeriodMarshaller()
    • Method Detail

      • getJavaClass

        public Class<? extends Period> getJavaClass()
        Description copied from interface: Marshallable
        Returns the type of object handled by this marshallable instance.
        Specified by:
        getJavaClass in interface org.infinispan.protostream.BaseMarshaller<Period>
        Specified by:
        getJavaClass in interface Marshallable<Period>
        Returns:
        the type of object handled by this marshallable instance.