Package hec.util

Class SortedTable

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Map

public class SortedTable extends Hashtable implements 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 FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • main

      public static void main(String[] args)