de.cau.cs.kieler.kiml.grana
Class MinAvgMaxResult<T,S>

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.MinAvgMaxResult<T,S>
Type Parameters:
T - any class for minimum and maximum
S - any class for the average

public class MinAvgMaxResult<T,S>
extends Object

A helper class to store minimum, average and maximum in one object. This is commonly used as result for analyses.

Rating red

Constructor Summary
MinAvgMaxResult(T mi, S av, T ma)
          Constructs a minimum/average/maximum result.
 
Method Summary
 S getAvg()
          Returns the average.
 T getMax()
          Returns the maximum.
 T getMin()
          Returns the minimum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinAvgMaxResult

public MinAvgMaxResult(T mi,
                       S av,
                       T ma)
Constructs a minimum/average/maximum result.

Parameters:
mi - the minimum
av - the average
ma - the maximum
Method Detail

getMin

public T getMin()
Returns the minimum.

Returns:
the minimum

getAvg

public S getAvg()
Returns the average.

Returns:
the average

getMax

public T getMax()
Returns the maximum.

Returns:
the maximum