com.hazelcast.nio.serialization
Class DefaultSerializers.EnumSerializer
java.lang.Object
com.hazelcast.nio.serialization.DefaultSerializers.EnumSerializer
- All Implemented Interfaces:
- Serializer, StreamSerializer<Enum>
- Enclosing class:
- DefaultSerializers
public static final class DefaultSerializers.EnumSerializer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSerializers.EnumSerializer
public DefaultSerializers.EnumSerializer()
getTypeId
public int getTypeId()
- Returns:
- typeId of serializer
write
public void write(ObjectDataOutput out,
Enum obj)
throws IOException
- Description copied from interface:
StreamSerializer
- This method writes object to ObjectDataOutput
- Parameters:
out
- ObjectDataOutput stream that object will be written toobj
- that will be written to out
- Throws:
IOException
- in case of failure to write
read
public Enum read(ObjectDataInput in)
throws IOException
- Description copied from interface:
StreamSerializer
- Reads object from objectDataInputStream
- Parameters:
in
- ObjectDataInput stream that object will read from
- Returns:
- read object
- Throws:
IOException
- in case of failure to read
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.