fr.inria.infovis.column
Class SumValueAggregator

java.lang.Object
  extended byfr.inria.infovis.column.ValueAggregator
      extended byfr.inria.infovis.column.SumValueAggregator

public class SumValueAggregator
extends ValueAggregator

Aggregator of value This aggregator add the two values.

Author:
raf

Constructor Summary
SumValueAggregator()
          Default constructor
 
Method Summary
 java.lang.String aggregate(double value1, double value2)
          aggregation of two double
 java.lang.String aggregate(long value1, long value2)
          aggregation of two longs
 java.lang.String aggregate(java.lang.String value1, java.lang.String value2)
          aggregation of two strings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SumValueAggregator

public SumValueAggregator()
Default constructor

Method Detail

aggregate

public java.lang.String aggregate(double value1,
                                  double value2)
Description copied from class: ValueAggregator
aggregation of two double

Specified by:
aggregate in class ValueAggregator
Parameters:
value1 - the first double value to combine
value2 - the second double value to combine
Returns:
the sum of value1 and value2
See Also:
ValueAggregator.aggregate(double, double)

aggregate

public java.lang.String aggregate(long value1,
                                  long value2)
Description copied from class: ValueAggregator
aggregation of two longs

Specified by:
aggregate in class ValueAggregator
Parameters:
value1 - the first long value to combine
value2 - the second long value to combine
Returns:
the sum of value1 and value2
See Also:
ValueAggregator.aggregate(long, long)

aggregate

public java.lang.String aggregate(java.lang.String value1,
                                  java.lang.String value2)
Description copied from class: ValueAggregator
aggregation of two strings

Specified by:
aggregate in class ValueAggregator
Parameters:
value1 - the first String value to combine
value2 - the second String value to combine
Returns:
the concatenation of value1 and value2
See Also:
ValueAggregator.aggregate(java.lang.String, java.lang.String)