public class Total extends Object implements Serializable
Constructor and Description |
---|
Total() |
Total(BigDecimal start) |
Total(BigDecimal start,
int scale) |
Total(Total start) |
Modifier and Type | Method and Description |
---|---|
Total |
add(BigDecimal... value) |
Total |
add(Integer value) |
Total |
add(Total value) |
Total |
addIfTrue(boolean condition,
BigDecimal... values) |
int |
getCount() |
BigDecimal |
getTotal() |
boolean |
isNegative() |
boolean |
isNotZero() |
boolean |
isZero() |
boolean |
isZeroOrLess() |
Total |
minus(BigDecimal... value) |
Total |
minus(Total value) |
Total |
setTotal(BigDecimal total) |
Total |
subtract(BigDecimal... value) |
Total |
subtractIfTrue(boolean condition,
BigDecimal... values) |
String |
toString() |
public Total()
public Total(BigDecimal start)
public Total(BigDecimal start, int scale)
public Total(Total start)
public BigDecimal getTotal()
public Total setTotal(BigDecimal total)
public Total addIfTrue(boolean condition, BigDecimal... values)
condition
- if true, do the addition.values
- public Total add(BigDecimal... value)
public Total subtractIfTrue(boolean condition, BigDecimal... values)
condition
- if true, do the subtraction.values
- public Total subtract(BigDecimal... value)
public Total minus(BigDecimal... value)
public boolean isZero()
public boolean isNotZero()
public boolean isNegative()
public boolean isZeroOrLess()
public int getCount()
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.