public class TestObject extends java.lang.Object implements DataSerializable
DataSerializable.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected int |
_price |
protected java.lang.String |
_ticker |
int |
id |
int |
important |
int |
select |
int |
selection |
| Constructor and Description |
|---|
TestObject() |
TestObject(int id,
java.lang.String ticker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
fromData(java.io.DataInput in)
Reads the state of this object as primitive data from the given
DataInput. |
int |
getId() |
int |
getPrice() |
java.lang.String |
getTicker() |
int |
hashCode() |
void |
toData(java.io.DataOutput out)
Writes the state of this object as primitive data to the given
DataOutput. |
java.lang.String |
toString() |
protected java.lang.String _ticker
protected int _price
public int id
public int important
public int selection
public int select
public TestObject()
public TestObject(int id,
java.lang.String ticker)
public int getId()
public java.lang.String getTicker()
public int getPrice()
public void toData(java.io.DataOutput out)
throws java.io.IOException
DataSerializableDataOutput.
Since 5.7 it is possible for any method call to the specified DataOutput to throw
GemFireRethrowable. It should not be caught by user code. If it is it
must be rethrown.
toData in interface DataSerializablejava.io.IOException - A problem occurs while writing to outpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
DataSerializableDataInput.fromData in interface DataSerializablejava.io.IOException - A problem occurs while reading from injava.lang.ClassNotFoundException - A class could not be loaded while reading from inpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object