public static class BankIntf.TransactionData
extends java.lang.Object
The dbId and the name fields are relative to the other part involved in the transaction.
Modifier and Type | Field and Description |
---|---|
double |
amount
The amount of the transaction.
|
int |
dbId
The DB ID of the other part involved in the transaction.
|
int |
id
The id of the transaction.
|
java.lang.String |
name
The name of the other part involved in the transaction.
|
java.lang.String |
reason
the reason for the transaction.
|
long |
timeStamp
The time stamp of the transaction; in milliseconds relative to the
Unix epoch.
|
Constructor and Description |
---|
TransactionData(int id,
int dbId,
java.lang.String name,
long timeStamp,
double amount,
java.lang.String reason)
Creates a new transaction with the given data.
|
public int id
This value makes sense only for the providing bank; use 0 when creating new transactions from scratch.
public int dbId
public java.lang.String name
public long timeStamp
public double amount
public java.lang.String reason