public class SmallObject extends Object implements objects.ConfigurableObject, com.gemstone.gemfire.DataSerializable
| Constructor and Description |
|---|
SmallObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Two
SmallObjects are considered to be equal if they have
the same id. |
void |
fromData(DataInput in) |
int |
getIndex()
Returns the index.
|
void |
init(int index)
Initializes a SmallObject.
|
void |
toData(DataOutput out) |
String |
toString() |
void |
validate(int index)
Validates that the given index coincides with the SmallObject.
|
protected int id
protected String name
public void init(int index)
init in interface objects.ConfigurableObjectindex - the value to encode into the SmallObject.ObjectCreationException - index cannot be encodedpublic int getIndex()
getIndex in interface objects.ConfigurableObjectObjectAccessExceptionpublic void validate(int index)
validate in interface objects.ConfigurableObjectindex - the expected valueObjectValidationException - If index does not match.public boolean equals(Object o)
SmallObjects are considered to be equal if they have
the same id.public void toData(DataOutput out) throws IOException
toData in interface com.gemstone.gemfire.DataSerializableIOExceptionpublic void fromData(DataInput in) throws IOException, ClassNotFoundException
fromData in interface com.gemstone.gemfire.DataSerializableIOExceptionClassNotFoundExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.