Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util
Class SortedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by net.java.sip.communicator.util.SortedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class SortedProperties
extends Properties

This class is a sorted version of classical java.util.Properties. It is strongly inspired by http://forums.sun.com/thread.jspa?threadID=141144.

Author:
Sebastien Vincent
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SortedProperties()
           
 
Method Summary
 Enumeration<Object> keys()
          Get an enumeration of keys hold by the Properties object.
 
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, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortedProperties

public SortedProperties()
Method Detail

keys

public Enumeration<Object> keys()
Get an enumeration of keys hold by the Properties object. Contrary to the original Properties implementation, it forces the keys to be sorted alphabetically.

Overrides:
keys in class Hashtable<Object,Object>
Returns:
enumeration of the keys hold by the Properties.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.