com.hazelcast.spi.impl
Class SerializableCollection

java.lang.Object
  extended by com.hazelcast.spi.impl.SerializableCollection
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, Iterable<Data>

public final class SerializableCollection
extends Object
implements IdentifiedDataSerializable, Iterable<Data>


Constructor Summary
SerializableCollection()
           
SerializableCollection(Collection<Data> collection)
           
SerializableCollection(Data... dataArray)
           
 
Method Summary
 Collection<Data> getCollection()
           
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 Iterator<Data> iterator()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 int size()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableCollection

public SerializableCollection()

SerializableCollection

public SerializableCollection(Collection<Data> collection)

SerializableCollection

public SerializableCollection(Data... dataArray)
Method Detail

getCollection

public Collection<Data> getCollection()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id

iterator

public Iterator<Data> iterator()
Specified by:
iterator in interface Iterable<Data>

size

public int size()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.