public class CollectionItem extends Object implements Comparable<CollectionItem>, IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
protected long |
creationTime |
protected long |
itemId |
protected Data |
value |
Constructor and Description |
---|
CollectionItem() |
CollectionItem(long itemId,
Data value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CollectionItem o) |
boolean |
equals(Object o) |
long |
getCreationTime() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
long |
getItemId() |
Data |
getValue() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setValue(Data value) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected long itemId
protected Data value
protected final long creationTime
public CollectionItem()
public CollectionItem(long itemId, Data value)
public long getItemId()
public Data getValue()
public void setValue(Data value)
public long getCreationTime()
public int compareTo(CollectionItem o)
compareTo
in interface Comparable<CollectionItem>
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.