Example usage for org.apache.commons.lang3.math NumberUtils LONG_ZERO

List of usage examples for org.apache.commons.lang3.math NumberUtils LONG_ZERO

Introduction

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

Prototype

Long LONG_ZERO

To view the source code for org.apache.commons.lang3.math NumberUtils LONG_ZERO.

Click Source Link

Document

Reusable Long constant for zero.

Usage

From source file:eu.jsan.duvi.commons.conversion.bool.BooleanToLongConverter.java

@Override
public Long convertToDatabaseColumn(Boolean attribute) {
    return (attribute != null && attribute) ? NumberUtils.LONG_ONE : NumberUtils.LONG_ZERO;
}

From source file:com.quinsoft.zeidon.standardoe.EntityInstanceImpl.java

/**
 * Creates an empty entity instance.  This gives us a way to create uninitialized
 * entity instances used for temporary traversal.
 *//*from w  w w.  j  a v a2s  .  co m*/
EntityInstanceImpl(EntityDef entityDef) {
    super();
    this.entityDef = entityDef;
    objectInstance = null;
    entityKey = NumberUtils.LONG_ZERO;
    depth = -1;
}

From source file:com.tao_harmony.fx2extend.journal.Journal.java

/**
 * ??.??????????./*from  w  w w  .  ja  va2s  .c om*/
 * <ul>
 * <li></li>
 * <li>?</li>
 * <li>?????</li>
 * </ul>
 */
public void reset() {
    this.ammount = NumberUtils.LONG_ZERO;
    this.checkNumber = StringUtils.EMPTY;
    this.creditCode = NumberUtils.SHORT_ZERO;
    this.creditSubCode = StringUtils.EMPTY;
    this.customer = StringUtils.EMPTY;
    this.customerCode = NumberUtils.INTEGER_ZERO;
    this.debitCode = NumberUtils.SHORT_ZERO;
    this.debitSubCode = StringUtils.EMPTY;
    this.departmentAmmountClass = NumberUtils.BYTE_ZERO;
    this.departmentCode = NumberUtils.SHORT_ZERO;
    this.departmentCount = NumberUtils.BYTE_ZERO;
    this.evidenceNumber = StringUtils.EMPTY;
    this.fundBalanceMajor = NumberUtils.BYTE_ZERO;
    this.fundBalanceMinor = NumberUtils.BYTE_ZERO;
    this.paymentDay = NumberUtils.INTEGER_ZERO;
    this.purchaseDayBegins = NumberUtils.INTEGER_ZERO;
    this.purchaseDayEnds = NumberUtils.INTEGER_ZERO;
    this.purchasePattern = NumberUtils.BYTE_ZERO;
    this.recordNumber = NumberUtils.INTEGER_ZERO;
    this.recoveryDay = NumberUtils.INTEGER_ZERO;
    this.ruleNumber = NumberUtils.INTEGER_ZERO;
    this.segmentCode = NumberUtils.BYTE_ZERO;
    this.slipNumber = NumberUtils.INTEGER_ZERO;
    this.summary = StringUtils.EMPTY;
    this.taxAmmount = NumberUtils.LONG_ZERO;
    this.taxClass = NumberUtils.BYTE_ZERO;
    this.taxInputClass = NumberUtils.BYTE_ZERO;
    this.taxRate = NumberUtils.INTEGER_ZERO;
}