Class OrderedProperties

  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by net.i2p.util.OrderedProperties
All Implemented Interfaces:, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class OrderedProperties
extends java.util.Properties

Properties map that has its keySet ordered consistently (via the key's lexicographical ordering). This is useful in environments where maps must stay the same order (e.g. for signature verification) This does NOT support remove against the iterators / etc.

zzz Rewritten Now unsorted until the keyset or entryset is requested. The class is unsynchronized. The keySet() and entrySet() methods return ordered sets. Others - such as the enumerations values(), keys(), propertyNames() - do not.
See Also:
Serialized Form

Field Summary
Fields inherited from class java.util.Properties
Constructor Summary
Method Summary
 java.util.Set entrySet()
 java.util.Set keySet()
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, put, putAll, rehash, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public OrderedProperties()
Method Detail


public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map<java.lang.Object,java.lang.Object>
keySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>


public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.Object,java.lang.Object>
entrySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>