Package org.cyclos.entities.banking
Class TransferSummary
- java.lang.Object
-
- org.cyclos.entities.banking.TransferSummary
-
-
Constructor Summary
Constructors Constructor Description TransferSummary()TransferSummary(long count, BigDecimal amount)TransferSummary(Integer count, BigDecimal amount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferSummaryadd(Integer count, BigDecimal amount)Returns a new transaction summary, adding the given parameters to this oneTransferSummaryadd(BigDecimal amount)Returns a new transaction summary, adding one transaction with the given amountTransferSummaryadd(TransferSummary other)Returns a new transaction summary, adding the given parameters to this oneTransferSummaryclone()BigDecimalgetAmount()BigDecimalgetAverage()IntegergetCount()voidsetAmount(BigDecimal amount)voidsetCount(Integer count)TransferSummarysubtract(Integer count, BigDecimal amount)Returns a new transaction summary, subtracting the given parameters to this oneTransferSummarysubtract(BigDecimal amount)Returns a new transaction summary, subtracting one transaction with the given amountTransferSummarysubtract(TransferSummary other)Returns a new transaction summary, subtracting the given parameters to this oneStringtoString()
-
-
-
Constructor Detail
-
TransferSummary
public TransferSummary()
-
TransferSummary
public TransferSummary(Integer count, BigDecimal amount)
-
TransferSummary
public TransferSummary(long count, BigDecimal amount)
-
-
Method Detail
-
add
public TransferSummary add(BigDecimal amount)
Returns a new transaction summary, adding one transaction with the given amount
-
add
public TransferSummary add(Integer count, BigDecimal amount)
Returns a new transaction summary, adding the given parameters to this one
-
add
public TransferSummary add(TransferSummary other)
Returns a new transaction summary, adding the given parameters to this one
-
clone
public TransferSummary clone()
-
getAmount
public BigDecimal getAmount()
-
getAverage
public BigDecimal getAverage()
-
getCount
public Integer getCount()
-
setAmount
public void setAmount(BigDecimal amount)
-
setCount
public void setCount(Integer count)
-
subtract
public TransferSummary subtract(BigDecimal amount)
Returns a new transaction summary, subtracting one transaction with the given amount
-
subtract
public TransferSummary subtract(Integer count, BigDecimal amount)
Returns a new transaction summary, subtracting the given parameters to this one
-
subtract
public TransferSummary subtract(TransferSummary other)
Returns a new transaction summary, subtracting the given parameters to this one
-
-