public final class IdentityProjection<I> extends Projection<I,I> implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
static IdentityProjection<Object> |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
I |
transform(I input)
Transforms the input object into the output object.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final IdentityProjection<Object> INSTANCE
public I transform(I input)
Projection
transform
in class Projection<I,I>
input
- object.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out)
DataSerializable
writeData
in interface DataSerializable
out
- outputpublic void readData(ObjectDataInput in)
DataSerializable
readData
in interface DataSerializable
in
- inputCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.