Top Description Fields Constructors Methods
org.apache.commons.collections4.properties

public Class SortedProperties

extends Properties
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Enumeration, .List, .Properties, .Set, org.apache.commons.collections4.iterators.IteratorEnumeration

A drop-in replacement for Properties for sorting keys.

Overrides Properties#keys() to sort keys. Allows other methods on the superclass to work with sorted keys.

Since
4.2

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from java.util.Properties:
defaults

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized Enumeration<Object>
keys()

Overrides java.util.Properties.keys.

Returns an enumeration of the keys in this hashtable.
Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaultgetPropertygetPropertyhashCodeisEmptykeySetlistlistloadloadloadFromXMLmergepropertyNamesputputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.Properties.serialVersionUID.

Constructor Detail

SortedPropertiesback to summary
public SortedProperties()

Method Detail

keysback to summary
public synchronized Enumeration<Object> keys()

Overrides java.util.Properties.keys.

Doc from java.util.Hashtable.keys.

Returns an enumeration of the keys in this hashtable. Use the Enumeration methods on the returned object to fetch the keys sequentially. If the hashtable is structurally modified while enumerating over the keys then the results of enumerating are undefined.

Returns:Enumeration<Object>

an enumeration of the keys in this hashtable.

Annotations
@Override