public class DetailRecord
extends java.lang.Object
rated transaction.Transaction| Constructor and Description |
|---|
DetailRecord()
Builds an empty detail record.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDetail(java.lang.String detail,
java.math.BigDecimal value)
Adds a number detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.util.Date value)
Adds a date detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.lang.Object value)
Adds a detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.lang.String value)
Adds a string detail to the details record.
|
DetailRecord |
duplicate() |
boolean |
equals(java.lang.Object other)
Compares this DetailRecord with an other.
|
java.lang.Object |
getDetail(java.lang.String detail)
Retrieves the value of a detail.
|
java.util.Collection<java.lang.String> |
getDetails()
Returns a collection of the detail names in this detail record.
|
int |
hashCode() |
int |
size()
Returns the number of details.
|
public void addDetail(java.lang.String detail,
java.lang.Object value)
detail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.lang.String value)
detail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.math.BigDecimal value)
detail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.util.Date value)
detail - The name of the detailvalue - The value of the detailpublic java.lang.Object getDetail(java.lang.String detail)
detail - The name of the detail to retrievepublic java.util.Collection<java.lang.String> getDetails()
public int size()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare withpublic int hashCode()
hashCode in class java.lang.Objectpublic DetailRecord duplicate()