
public class Checksum extends Object implements Cloneable, Serializable
| Constructor and Description |
|---|
Checksum()
Creates a new
Checksum instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Transaction transaction)
Adds a
Transaction to the checksum. |
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of all properties.
|
long |
getSumAmount()
Getter for property
sumAmount. |
long |
getSumTargetAccount()
Getter for property
sumTargetAccount. |
long |
getSumTargetBank()
Getter for property
sumTargetBank. |
int |
getTransactionCount()
Getter for property
transactionCount. |
int |
hashCode()
Returns a hash code value for this object.
|
void |
setSumAmount(long value)
Setter for property
sumAmount. |
void |
setSumTargetAccount(long value)
Setter for property
sumTargetAccount. |
void |
setSumTargetBank(long value)
Setter for property
sumTargetBank. |
void |
setTransactionCount(int value)
Setter for property
transactionCount. |
void |
subtract(Transaction transaction)
Subtracts a
Transaction from the checksum. |
String |
toString()
Returns a string representation of the object.
|
public Checksum()
Checksum instance.public void add(Transaction transaction)
Transaction to the checksum.transaction - The transaction to add to the checksum.NullPointerException - if transaction is null.public boolean equals(Object o)
public long getSumAmount()
sumAmount.public long getSumTargetAccount()
sumTargetAccount.public long getSumTargetBank()
sumTargetBank.public int getTransactionCount()
transactionCount.public int hashCode()
public void setSumAmount(long value)
sumAmount.value - Sum of all amounts of all transactions stored in a logical file.public void setSumTargetAccount(long value)
sumTargetAccount.value - Sum of all target account codes of all transactions stored in a logical file.public void setSumTargetBank(long value)
sumTargetBank.value - Sum of all target bank codes of all transactions stored in a logical file.public void setTransactionCount(int value)
transactionCount.value - Number of transactions stored in a logical file.public void subtract(Transaction transaction)
Transaction from the checksum.transaction - The transaction to subtract from the checksum.NullPointerException - if transaction is null.Copyright © 2005–2014 jDTAUS. All rights reserved.