fr.inria.infovis.column
Class SubValueAggregator

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

public class SubValueAggregator
extends ValueAggregator

Aggregator of value This aggregator substract the two values.

Author:
raf

Constructor Summary
SubValueAggregator()
          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

SubValueAggregator

public SubValueAggregator()
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 difference 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 difference 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)