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