public class FastAsset extends Object implements objects.ConfigurableObject, com.gemstone.gemfire.DataSerializable
FastAssetAccount.| Constructor and Description |
|---|
FastAsset() |
| Modifier and Type | Method and Description |
|---|---|
FastAsset |
copy()
Makes a copy of this asset.
|
boolean |
equals(Object obj) |
void |
fromData(DataInput in) |
int |
getAssetId()
Returns the id of the asset.
|
int |
getIndex() |
double |
getValue()
Returns the asset value.
|
int |
hashCode() |
void |
init(int anAssetId) |
void |
setAssetId(int i)
Sets the id of the asset.
|
void |
setValue(double d)
Sets the asset value.
|
void |
toData(DataOutput out) |
String |
toString() |
void |
validate(int index) |
public void init(int anAssetId)
init in interface objects.ConfigurableObjectpublic FastAsset copy()
public int getAssetId()
public void setAssetId(int i)
public double getValue()
public void setValue(double d)
public int getIndex()
getIndex in interface objects.ConfigurableObjectpublic void validate(int index)
validate in interface objects.ConfigurableObjectpublic 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.