org.intranet.statistics
Class IntColumn

java.lang.Object
  extended byorg.intranet.statistics.IntColumn
All Implemented Interfaces:
Column

public class IntColumn
extends java.lang.Object
implements Column


Field Summary
private  float average
           
private  java.lang.String heading
           
private  int max
           
private  int maxIndex
           
private  int min
           
private  int minIndex
           
private  long total
           
private  int[] values
           
 
Constructor Summary
IntColumn(java.lang.String hdr, int[] vals)
           
 
Method Summary
private  void calculate()
           
 java.lang.Number getAverage()
           
 java.lang.String getHeading()
           
 java.lang.Number getMax()
           
 int getMaxIndex()
           
 java.lang.Number getMin()
           
 int getMinIndex()
           
 java.lang.Number getTotal()
           
 java.lang.Number getValue(int x)
           
 int getValueCount()
           
 boolean isMax(int index)
           
 boolean isMin(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

heading

private java.lang.String heading

values

private int[] values

total

private long total

average

private float average

min

private int min

max

private int max

minIndex

private int minIndex

maxIndex

private int maxIndex
Constructor Detail

IntColumn

public IntColumn(java.lang.String hdr,
                 int[] vals)
Method Detail

getHeading

public java.lang.String getHeading()
Specified by:
getHeading in interface Column

getTotal

public java.lang.Number getTotal()
Specified by:
getTotal in interface Column

getAverage

public java.lang.Number getAverage()
Specified by:
getAverage in interface Column

getMin

public java.lang.Number getMin()
Specified by:
getMin in interface Column

getMax

public java.lang.Number getMax()
Specified by:
getMax in interface Column

getValueCount

public int getValueCount()
Specified by:
getValueCount in interface Column

getValue

public java.lang.Number getValue(int x)
Specified by:
getValue in interface Column

getMinIndex

public int getMinIndex()
Specified by:
getMinIndex in interface Column

getMaxIndex

public int getMaxIndex()
Specified by:
getMaxIndex in interface Column

isMin

public boolean isMin(int index)
Specified by:
isMin in interface Column

isMax

public boolean isMax(int index)
Specified by:
isMax in interface Column

calculate

private void calculate()