Code example for BigDecimal

Methods: add

0
count.set(lastGroupSequenceNumber, ONE);
    } 
    else 
    { 
      count.set(lastGroupSequenceNumber, oldValue.add(ONE));
    } 
  } 
 
  public void summaryRowSelection(final ReportEvent event)
  { 
    if (FunctionUtilities.isDefinedGroup(getCrosstabFilterGroup(), event))
    { 
      final int groupIndex = event.getState().getCurrentGroupIndex();
      this.lastGroupSequenceNumber = (int) event.getState().getCrosstabColumnSequenceCounter(groupIndex);
    } 
  } 
   
  /** 
   * Returns the number of items counted (so far) by the function.  This is either the number of items in the report, or 
   * the group (if a group has been defined for the function).