Package hec.util

Class SortedTable

All Implemented Interfaces:
hec.io.AsciiSerializable, Serializable, Cloneable, Map

public class SortedTable extends Hashtable implements hec.io.AsciiSerializable
See Also:
  • Constructor Details

    • SortedTable

      public SortedTable()
  • Method Details

    • put

      public Object put(Object key, Object obj)
      Specified by:
      put in interface Map
      Overrides:
      put in class Hashtable
    • put

      public Object put(Object key)
    • getSortedKeyObjects

      public Object[] getSortedKeyObjects()
      Retuns a list of Key objects in sorted ascending order
    • getSortedKeyObjects

      public Object[] getSortedKeyObjects(boolean ascending)
      Returns a list of key objects in sorted order
      Parameters:
      ascending - true if ascending, othwerwise false for descending
    • getSortedKeyList

      public String[] getSortedKeyList()
      Returns a list of keys in sorted ascending order. Keys are returned as strings.
    • getFieldObject

      public Object getFieldObject(Field fld)
      // AsciiSerializable Methods ----------------------------------------------
      Specified by:
      getFieldObject in interface hec.io.AsciiSerializable
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Specified by:
      setFieldObject in interface hec.io.AsciiSerializable
    • main

      public static void main(String[] args)