public class AssetAccount extends Object implements objects.ConfigurableObject, TimestampedObject, UpdatableObject, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
acctId |
protected Map |
assets |
protected String |
customerName |
protected static boolean |
encodeTimestamp |
protected double |
netWorth |
protected long |
timestamp |
| Constructor and Description |
|---|
AssetAccount() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAcctId() |
Map |
getAssets() |
String |
getCustomerName() |
int |
getIndex() |
double |
getNetWorth() |
long |
getTimestamp()
Returns the object creation timestamp encoded in the object.
|
int |
hashCode() |
void |
incrementNetWorth() |
void |
init(int index) |
void |
resetTimestamp()
Resets the timestamp encoded in the object to the current time.
|
String |
toString() |
void |
update()
Updates one or more object fields.
|
void |
validate(int index) |
protected static final boolean encodeTimestamp
protected int acctId
protected String customerName
protected double netWorth
protected Map assets
protected long timestamp
public void init(int index)
init in interface objects.ConfigurableObjectpublic int getAcctId()
public String getCustomerName()
public double getNetWorth()
public void incrementNetWorth()
public Map getAssets()
public int getIndex()
getIndex in interface objects.ConfigurableObjectpublic void validate(int index)
validate in interface objects.ConfigurableObjectpublic long getTimestamp()
TimestampedObjectgetTimestamp in interface TimestampedObjectpublic void resetTimestamp()
TimestampedObjectresetTimestamp in interface TimestampedObjectpublic void update()
UpdatableObjectupdate in interface UpdatableObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.