Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jbreport.data
Class AggregatableSum  view AggregatableSum download AggregatableSum.java

java.lang.Object
  extended byjbreport.data.AggregatableSum
All Implemented Interfaces:
Aggregate.Aggregatable

class AggregatableSum
extends java.lang.Object
implements Aggregate.Aggregatable

The summing Aggregatable class.


Field Summary
private  java.math.BigDecimal bigDecimalSum
          The sum of the BigDecimal values
private  int intSum
          The sum of the int values
 
Constructor Summary
AggregatableSum()
           
 
Method Summary
 java.math.BigDecimal getBigDecimal()
          Returns the current BigDecimal value of this instance.
 int getInt()
          Returns the current int value of this instance.
 java.lang.String getOpName()
          The name of the operation that is implemented by this instance.
 void reset()
          Reset the internal values of the instance.
 void setType(java.lang.String type)
          Setup this instance with the type that will be used during the run.
 void update(java.math.BigDecimal value)
          Provides the next BigDecimal value with which to update this instance.
 void update(int value)
          Provides the next int value with which to update this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intSum

private int intSum
The sum of the int values


bigDecimalSum

private java.math.BigDecimal bigDecimalSum
The sum of the BigDecimal values

Constructor Detail

AggregatableSum

public AggregatableSum()
Method Detail

getOpName

public java.lang.String getOpName()
Description copied from interface: Aggregate.Aggregatable
The name of the operation that is implemented by this instance.

Specified by:
getOpName in interface Aggregate.Aggregatable

setType

public void setType(java.lang.String type)
Description copied from interface: Aggregate.Aggregatable
Setup this instance with the type that will be used during the run.

Specified by:
setType in interface Aggregate.Aggregatable

reset

public void reset()
Description copied from interface: Aggregate.Aggregatable
Reset the internal values of the instance.

Specified by:
reset in interface Aggregate.Aggregatable

update

public void update(int value)
Description copied from interface: Aggregate.Aggregatable
Provides the next int value with which to update this instance.

Specified by:
update in interface Aggregate.Aggregatable

update

public void update(java.math.BigDecimal value)
Description copied from interface: Aggregate.Aggregatable
Provides the next BigDecimal value with which to update this instance.

Specified by:
update in interface Aggregate.Aggregatable

getInt

public int getInt()
Description copied from interface: Aggregate.Aggregatable
Returns the current int value of this instance.

Specified by:
getInt in interface Aggregate.Aggregatable

getBigDecimal

public java.math.BigDecimal getBigDecimal()
Description copied from interface: Aggregate.Aggregatable
Returns the current BigDecimal value of this instance.

Specified by:
getBigDecimal in interface Aggregate.Aggregatable