Package hec.util
Class SortedTable
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
hec.util.SortedTable
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Map
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldObject
(Field fld) // AsciiSerializable Methods ----------------------------------------------String[]
Returns a list of keys in sorted ascending order.Object[]
Retuns a list of Key objects in sorted ascending orderObject[]
getSortedKeyObjects
(boolean ascending) Returns a list of key objects in sorted orderstatic void
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
Constructor Details
-
SortedTable
public SortedTable()
-
-
Method Details
-
put
-
put
-
getSortedKeyObjects
Retuns a list of Key objects in sorted ascending order -
getSortedKeyObjects
Returns a list of key objects in sorted order- Parameters:
ascending
- true if ascending, othwerwise false for descending
-
getSortedKeyList
Returns a list of keys in sorted ascending order. Keys are returned as strings. -
getFieldObject
// AsciiSerializable Methods ----------------------------------------------- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-
main
-