Top Description Fields Constructors Methods
org.apache.derby.iapi.util

public final Class DoubleProperties

extends Properties
Class Inheritance
Imports
java.util.Collections, .Enumeration, .HashSet, .Properties

A properties object that links two independent properties together. The read property set is always searched first, with the write property set being second. But any put() calls are always made directly to the write object. Only the put(), propertyNames() and getProperty() methods are supported by this class.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
addAllNames(Properties src, HashSet<Object> dest)

Add all property names in the Properties object src to the HashSet dest.

public String
getProperty(String
the property key.
key
)

Overrides java.util.Properties.getProperty.

Searches for the property with the specified key in this property list.
public String
getProperty(String
the hashtable key.
key
,
String
a default value.
defaultValue
)

Overrides java.util.Properties.getProperty.

Searches for the property with the specified key in this property list.
public Enumeration<Object>
propertyNames()

Overrides java.util.Properties.propertyNames.

Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
public Object
put(Object
the hashtable key
key
,
Object
the value
value
)

Overrides java.util.Properties.put.

Implements java.util.Map.put.

Maps the specified key to the specified value in this hashtable.
Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaulthashCodeisEmptykeyskeySetlistlistloadloadloadFromXMLmergeputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Field Detail

readback to summary
private final Properties read
writeback to summary
private final Properties write

Constructor Detail

DoublePropertiesback to summary
public DoubleProperties(Properties read, Properties write)

Method Detail

addAllNamesback to summary
private static void addAllNames(Properties src, HashSet<Object> dest)

Add all property names in the Properties object src to the HashSet dest.

getPropertyback to summary
public String getProperty(String key)

Overrides java.util.Properties.getProperty.

Doc from java.util.Properties.getProperty.

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null if the property is not found.

Parameters
key:String

the property key.

Returns:String

the value in this property list with the specified key value.

getPropertyback to summary
public String getProperty(String key, String defaultValue)

Overrides java.util.Properties.getProperty.

Doc from java.util.Properties.getProperty.

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.

Parameters
key:String

the hashtable key.

defaultValue:String

a default value.

Returns:String

the value in this property list with the specified key value.

propertyNamesback to summary
public Enumeration<Object> propertyNames()

Overrides java.util.Properties.propertyNames.

Doc from java.util.Properties.propertyNames.

Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.

Returns:Enumeration<Object>

an enumeration of all the keys in this property list, including the keys in the default property list.

putback to summary
public Object put(Object key, Object value)

Overrides java.util.Properties.put.

Implements java.util.Map.put.

Doc from java.util.Hashtable.put.

Maps the specified key to the specified value in this hashtable. Neither the key nor the value can be null.

The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters
key:Object

the hashtable key

value:Object

the value

Returns:Object

the previous value of the specified key in this hashtable, or null if it did not have one