org.forester.util
Class BasicTable<E>

java.lang.Object
  extended by org.forester.util.BasicTable<E>

public class BasicTable<E>
extends Object


Constructor Summary
BasicTable()
           
 
Method Summary
 Map<String,E> getColumnsAsMap(int key_col, int value_col)
           
 Map<String,Double> getColumnsAsMapDouble(int key_col, int value_col)
           
 int getNumberOfColumns()
           
 int getNumberOfRows()
           
 E getValue(int col, int row)
           
 String getValueAsString(int col, int row)
           
 boolean isEmpty()
           
 void setValue(int col, int row, E value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicTable

public BasicTable()
Method Detail

getColumnsAsMap

public Map<String,E> getColumnsAsMap(int key_col,
                                     int value_col)
                              throws IllegalArgumentException
Throws:
IllegalArgumentException

getColumnsAsMapDouble

public Map<String,Double> getColumnsAsMapDouble(int key_col,
                                                int value_col)
                                         throws IllegalArgumentException,
                                                IOException
Throws:
IllegalArgumentException
IOException

getNumberOfColumns

public int getNumberOfColumns()

getNumberOfRows

public int getNumberOfRows()

getValue

public E getValue(int col,
                  int row)
           throws IllegalArgumentException
Throws:
IllegalArgumentException

getValueAsString

public String getValueAsString(int col,
                               int row)
                        throws IllegalArgumentException
Throws:
IllegalArgumentException

isEmpty

public boolean isEmpty()

setValue

public void setValue(int col,
                     int row,
                     E value)

toString

public String toString()
Overrides:
toString in class Object