org.apache.directory.shared.ldap.util
Class PreferencesDictionary
java.lang.Object
java.util.Dictionary<java.lang.String,java.lang.String>
org.apache.directory.shared.ldap.util.PreferencesDictionary
public class PreferencesDictionary
- extends java.util.Dictionary<java.lang.String,java.lang.String>
A wrapper around Preferences to access it as a Dictionary.
- Version:
- $Rev: 919765 $
- Author:
- Apache Directory Project
Method Summary |
java.util.Enumeration<java.lang.String> |
elements()
|
java.lang.String |
get(java.lang.Object key)
|
java.util.prefs.Preferences |
getPreferences()
Gets the Preferences used as the backing store for this Dictionary. |
boolean |
isEmpty()
|
java.util.Enumeration<java.lang.String> |
keys()
|
java.lang.String |
put(java.lang.String key,
java.lang.String value)
|
java.lang.String |
remove(java.lang.Object key)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferencesDictionary
public PreferencesDictionary(java.util.prefs.Preferences prefs)
getPreferences
public java.util.prefs.Preferences getPreferences()
- Gets the Preferences used as the backing store for this Dictionary.
- Returns:
- the underlying Preferences object
size
public int size()
- Specified by:
size
in class java.util.Dictionary<java.lang.String,java.lang.String>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in class java.util.Dictionary<java.lang.String,java.lang.String>
elements
public java.util.Enumeration<java.lang.String> elements()
- Specified by:
elements
in class java.util.Dictionary<java.lang.String,java.lang.String>
keys
public java.util.Enumeration<java.lang.String> keys()
- Specified by:
keys
in class java.util.Dictionary<java.lang.String,java.lang.String>
get
public java.lang.String get(java.lang.Object key)
- Specified by:
get
in class java.util.Dictionary<java.lang.String,java.lang.String>
remove
public java.lang.String remove(java.lang.Object key)
- Specified by:
remove
in class java.util.Dictionary<java.lang.String,java.lang.String>
put
public java.lang.String put(java.lang.String key,
java.lang.String value)
- Specified by:
put
in class java.util.Dictionary<java.lang.String,java.lang.String>
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.