Class PeriodExternalizer
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.time.PeriodExternalizer
-
- All Implemented Interfaces:
Externalizer<Period>
public class PeriodExternalizer extends Object implements Externalizer<Period>
Externalizer for aPeriod.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description PeriodExternalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Period>getTargetClass()PeriodreadObject(ObjectInput input)OptionalIntsize(Period object)voidwriteObject(ObjectOutput output, Period period)
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, Period period) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<Period>- Throws:
IOException
-
readObject
public Period readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<Period>- Throws:
IOExceptionClassNotFoundException
-
getTargetClass
public Class<Period> getTargetClass()
- Specified by:
getTargetClassin interfaceExternalizer<Period>
-
size
public OptionalInt size(Period object)
- Specified by:
sizein interfaceExternalizer<Period>
-
-