public static class AccountLedger.LedgerEntry
extends java.lang.Object
Constructor and Description |
---|
LedgerEntry(AccountLedger.LedgerEvent event,
long eventId,
long accountId,
AccountLedger.LedgerHolding holding,
java.lang.Long holdingId,
long change,
long balance)
Create a ledger entry
|
LedgerEntry(AccountLedger.LedgerEvent event,
long eventId,
long accountId,
long change,
long balance)
Create a ledger entry
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if two ledger events are equal
|
long |
getAccountId()
Return the account identifier
|
long |
getBalance()
Return the new balance
|
long |
getBlockId()
Return the block identifier
|
long |
getChange()
Return the balance change
|
AccountLedger.LedgerEvent |
getEvent()
Return the ledger event
|
long |
getEventId()
Return the associated event identifier
|
int |
getHeight()
Return the height
|
AccountLedger.LedgerHolding |
getHolding()
Return the holding
|
java.lang.Long |
getHoldingId()
Return the holding identifier
|
long |
getLedgerId()
Return the ledger identifier
|
int |
getTimestamp()
Return the timestamp
|
int |
hashCode()
Return the hash code
|
public LedgerEntry(AccountLedger.LedgerEvent event, long eventId, long accountId, AccountLedger.LedgerHolding holding, java.lang.Long holdingId, long change, long balance)
event
- EventeventId
- Event identifieraccountId
- Account identifierholding
- Holding or nullholdingId
- Holding identifier or nullchange
- Change in balancebalance
- New balancepublic LedgerEntry(AccountLedger.LedgerEvent event, long eventId, long accountId, long change, long balance)
event
- EventeventId
- Event identifieraccountId
- Account identifierchange
- Change in balancebalance
- New balancepublic long getLedgerId()
public AccountLedger.LedgerEvent getEvent()
public long getEventId()
public long getAccountId()
public AccountLedger.LedgerHolding getHolding()
public java.lang.Long getHoldingId()
public long getChange()
public long getBalance()
public long getBlockId()
public int getHeight()
public int getTimestamp()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Ledger event to check