List of usage examples for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO
Double DOUBLE_ZERO
To view the source code for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO.
Click Source Link
From source file:org.mifos.accounts.loan.struts.actionforms.LoanAccountActionForm.java
public boolean isAmountZeroOrNull(String loanAmount) { return StringUtils.isBlank(loanAmount) || (Double.compare(new LocalizationConverter().getDoubleValueForCurrentLocale(loanAmount), NumberUtils.DOUBLE_ZERO) == 0); }
From source file:org.mifos.accounts.loan.util.helpers.LoanAccountDetailsViewHelper.java
public boolean isAmountZeroOrNull() { return loanAmount == null || (Double.compare(new LocalizationConverter().getDoubleValueForCurrentLocale(loanAmount), NumberUtils.DOUBLE_ZERO) == 0); }