Package org.jboss.modules.management
Class ObjectProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.String,java.lang.String>
-
- org.jboss.modules.management.ObjectProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.String>
public final class ObjectProperties extends java.util.Hashtable<java.lang.String,java.lang.String>
A Hashtable variant which keeps property names in order, for use by MBeanObjectName
s.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectProperties.Property
A single property in a properties list.
-
Constructor Summary
Constructors Constructor Description ObjectProperties()
ObjectProperties(int initialCapacity)
ObjectProperties(int initialCapacity, float loadFactor)
ObjectProperties(java.util.Map<? extends java.lang.String,? extends java.lang.String> t)
ObjectProperties(ObjectProperties.Property... properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object value)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Enumeration<java.lang.String>
elements()
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>
entrySet()
java.lang.String
get(java.lang.Object key)
boolean
isEmpty()
java.util.Enumeration<java.lang.String>
keys()
java.util.Set<java.lang.String>
keySet()
static ObjectProperties
properties(ObjectProperties.Property... properties)
static ObjectProperties.Property
property(java.lang.String key, java.lang.String value)
java.lang.String
put(java.lang.String key, java.lang.String value)
void
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> t)
protected void
rehash()
java.lang.String
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
java.util.Collection<java.lang.String>
values()
-
-
-
Constructor Detail
-
ObjectProperties
public ObjectProperties(int initialCapacity, float loadFactor)
-
ObjectProperties
public ObjectProperties(int initialCapacity)
-
ObjectProperties
public ObjectProperties()
-
ObjectProperties
public ObjectProperties(java.util.Map<? extends java.lang.String,? extends java.lang.String> t)
-
ObjectProperties
public ObjectProperties(ObjectProperties.Property... properties)
-
-
Method Detail
-
property
public static ObjectProperties.Property property(java.lang.String key, java.lang.String value)
-
properties
public static ObjectProperties properties(ObjectProperties.Property... properties)
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
size
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
isEmpty
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
keys
public java.util.Enumeration<java.lang.String> keys()
- Overrides:
keys
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
elements
public java.util.Enumeration<java.lang.String> elements()
- Overrides:
elements
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
contains
public boolean contains(java.lang.Object value)
- Overrides:
contains
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
containsValue
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
containsKey
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
get
public java.lang.String get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
get
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
rehash
protected void rehash()
- Overrides:
rehash
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
put
public java.lang.String put(java.lang.String key, java.lang.String value)
- Specified by:
put
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
put
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
remove
public java.lang.String remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
remove
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> t)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
putAll
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
clear
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
keySet
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
entrySet
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
values
public java.util.Collection<java.lang.String> values()
- Specified by:
values
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
values
in classjava.util.Hashtable<java.lang.String,java.lang.String>
-
-