org.apache.derby.iapi.util
Class DoubleProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
org.apache.derby.iapi.util.DoubleProperties
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
public final class DoubleProperties
- extends java.util.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.
- See Also:
- Serialized Form
|
Field Summary |
private java.util.Properties |
read
|
private java.util.Properties |
write
|
| Fields inherited from class java.util.Properties |
defaults |
|
Constructor Summary |
DoubleProperties(java.util.Properties read,
java.util.Properties write)
|
|
Method Summary |
private static void |
addAllNames(java.util.Properties src,
java.util.HashSet dest)
Add all property names in the Properties object src to the
HashSet dest. |
java.lang.String |
getProperty(java.lang.String key)
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
|
java.util.Enumeration |
propertyNames()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
| Methods inherited from class java.util.Properties |
list, list, load, load, loadFromXML, 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, keys, keySet, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
read
private final java.util.Properties read
write
private final java.util.Properties write
DoubleProperties
public DoubleProperties(java.util.Properties read,
java.util.Properties write)
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put in interface java.util.Map<java.lang.Object,java.lang.Object>- Overrides:
put in class java.util.Hashtable<java.lang.Object,java.lang.Object>
getProperty
public java.lang.String getProperty(java.lang.String key)
- Overrides:
getProperty in class java.util.Properties
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
- Overrides:
getProperty in class java.util.Properties
propertyNames
public java.util.Enumeration propertyNames()
- Overrides:
propertyNames in class java.util.Properties
addAllNames
private static void addAllNames(java.util.Properties src,
java.util.HashSet dest)
- Add all property names in the Properties object
src to the
HashSet dest.
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.