T - public class SetSerializer<T> extends Object implements Serializer<Set<T>>
List.| Constructor and Description |
|---|
SetSerializer(Serializer<T> itemSerializer) |
| Modifier and Type | Method and Description |
|---|---|
SerializerFormatDefinition |
getFormatDefinition()
Get the definition that describes what this serializer can
read and write.
|
Set<T> |
read(StreamingInput in)
Read an object from the specified stream.
|
void |
write(Set<T> object,
String name,
StreamingOutput stream)
Write and object to the specified stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromBytes, fromBytes, toBytes, toBytespublic SetSerializer(Serializer<T> itemSerializer)
public Set<T> read(StreamingInput in) throws IOException
Serializerread in interface Serializer<Set<T>>IOExceptionpublic void write(Set<T> object, String name, StreamingOutput stream) throws IOException
Serializerwrite in interface Serializer<Set<T>>object - object to writename - the name it should have in the streamstream - the stream to useIOExceptionpublic SerializerFormatDefinition getFormatDefinition()
SerializergetFormatDefinition in interface Serializer<Set<T>>Copyright © 2017. All rights reserved.