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
DataSerializable
DataOutput
.
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 DataSerializable
java.io.IOException
- A problem occurs while writing to out
public void fromData(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
DataSerializable
DataInput
.fromData
in interface DataSerializable
java.io.IOException
- A problem occurs while reading from in
java.lang.ClassNotFoundException
- A class could not be loaded while reading from in
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object