public class SmallObject
extends java.lang.Object
implements objects.ConfigurableObject, com.gemstone.gemfire.DataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
id |
protected java.lang.String |
name |
| Constructor and Description |
|---|
SmallObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Two
SmallObjects are considered to be equal if they have
the same id. |
void |
fromData(java.io.DataInput in) |
int |
getIndex()
Returns the index.
|
void |
init(int index)
Initializes a SmallObject.
|
void |
toData(java.io.DataOutput out) |
java.lang.String |
toString() |
void |
validate(int index)
Validates that the given index coincides with the SmallObject.
|
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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
SmallObjects are considered to be equal if they have
the same id.equals in class java.lang.Objectpublic void toData(java.io.DataOutput out)
throws java.io.IOException
toData in interface com.gemstone.gemfire.DataSerializablejava.io.IOExceptionpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
fromData in interface com.gemstone.gemfire.DataSerializablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.