Class ObjectProperties
- All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>
A Hashtable variant which keeps property names in order, for use by MBean
ObjectNames.- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA 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 TypeMethodDescriptionvoidclear()clone()booleanbooleancontainsKey(Object key) booleancontainsValue(Object value) elements()entrySet()booleanisEmpty()keys()keySet()static ObjectPropertiesproperties(ObjectProperties.Property... properties) static ObjectProperties.Propertyvoidprotected voidrehash()intsize()toString()values()Methods inherited from class 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
-
isEmpty
-
keys
-
elements
-
contains
-
containsValue
- Specified by:
containsValuein interfaceMap<String,String> - Overrides:
containsValuein classHashtable<String,String>
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,String> - Overrides:
containsKeyin classHashtable<String,String>
-
get
-
rehash
-
put
-
remove
-
putAll
-
clear
-
clone
-
toString
-
keySet
-
entrySet
-
values
-