org.forester.util
Class GeneralTable<IDENTIFIER_TYPE,VALUE_TYPE>

java.lang.Object
  extended by org.forester.util.GeneralTable<IDENTIFIER_TYPE,VALUE_TYPE>

public class GeneralTable<IDENTIFIER_TYPE,VALUE_TYPE>
extends Object


Constructor Summary
GeneralTable()
           
 
Method Summary
 SortedSet<IDENTIFIER_TYPE> getColumnIdentifiers()
           
 SortedSet<IDENTIFIER_TYPE> getRowIdentifiers()
           
 VALUE_TYPE getValue(IDENTIFIER_TYPE col, IDENTIFIER_TYPE row)
           
 String getValueAsString(IDENTIFIER_TYPE col, IDENTIFIER_TYPE row)
           
 void setValue(IDENTIFIER_TYPE col, IDENTIFIER_TYPE row, VALUE_TYPE value)
           
 String toString()
           
 String toString(NumberFormat number_format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneralTable

public GeneralTable()
Method Detail

getColumnIdentifiers

public SortedSet<IDENTIFIER_TYPE> getColumnIdentifiers()

getRowIdentifiers

public SortedSet<IDENTIFIER_TYPE> getRowIdentifiers()

getValue

public VALUE_TYPE getValue(IDENTIFIER_TYPE col,
                           IDENTIFIER_TYPE row)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException

getValueAsString

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

setValue

public void setValue(IDENTIFIER_TYPE col,
                     IDENTIFIER_TYPE row,
                     VALUE_TYPE value)

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(NumberFormat number_format)