org.codehaus.mojo.properties
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 org.codehaus.mojo.properties.SortedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class SortedProperties
extends Properties

Override the keys() method so it returns keys in sorted order. One effect of this is the store() method will write properties to the file system in sorted order.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SortedProperties()
           
 
Method Summary
 Enumeration<Object> keys()
           
 
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()
Overrides:
keys in class Hashtable<Object,Object>


Copyright © 2009-2013 The Kuali Foundation. All Rights Reserved.