Example usage for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO

List of usage examples for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO

Introduction

In this page you can find the example usage for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO.

Prototype

Double DOUBLE_ZERO

To view the source code for org.apache.commons.lang.math NumberUtils DOUBLE_ZERO.

Click Source Link

Document

Reusable Double constant for zero.

Usage

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);
}