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