public class AssetAccount extends java.lang.Object implements objects.ConfigurableObject, TimestampedObject, UpdatableObject, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
acctId |
protected java.util.Map |
assets |
protected java.lang.String |
customerName |
protected static boolean |
encodeTimestamp |
protected double |
netWorth |
protected long |
timestamp |
| Constructor and Description |
|---|
AssetAccount() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAcctId() |
java.util.Map |
getAssets() |
java.lang.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.
|
java.lang.String |
toString() |
void |
update()
Updates one or more object fields.
|
void |
validate(int index) |
protected static final boolean encodeTimestamp
protected int acctId
protected java.lang.String customerName
protected double netWorth
protected java.util.Map assets
protected long timestamp
public void init(int index)
init in interface objects.ConfigurableObjectpublic int getAcctId()
public java.lang.String getCustomerName()
public double getNetWorth()
public void incrementNetWorth()
public java.util.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 UpdatableObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.