public class FastAsset
extends java.lang.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(java.lang.Object obj) |
void |
fromData(java.io.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(java.io.DataOutput out) |
java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode 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.