Package org.jboss.modules.management
Class ObjectProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
String>
A Hashtable variant which keeps property names in order, for use by MBean
ObjectName
s.- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A single property in a properties list. -
Constructor Summary
ConstructorsConstructorDescriptionObjectProperties
(int initialCapacity) ObjectProperties
(int initialCapacity, float loadFactor) ObjectProperties
(Map<? extends String, ? extends String> t) ObjectProperties
(ObjectProperties.Property... properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
boolean
containsKey
(Object key) boolean
containsValue
(Object value) elements()
entrySet()
boolean
isEmpty()
keys()
keySet()
static ObjectProperties
properties
(ObjectProperties.Property... properties) static ObjectProperties.Property
void
protected void
rehash()
int
size()
toString()
values()
Methods inherited from class java.util.Hashtable
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ObjectProperties
public ObjectProperties(int initialCapacity, float loadFactor) -
ObjectProperties
public ObjectProperties(int initialCapacity) -
ObjectProperties
public ObjectProperties() -
ObjectProperties
-
ObjectProperties
-
-
Method Details
-
property
-
properties
-
size
public int size() -
isEmpty
public boolean isEmpty() -
keys
-
elements
-
contains
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
String> - Overrides:
containsValue
in classHashtable<String,
String>
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
String> - Overrides:
containsKey
in classHashtable<String,
String>
-
get
-
rehash
protected void rehash() -
put
-
remove
-
putAll
-
clear
public void clear() -
clone
-
toString
-
keySet
-
entrySet
-
values
-