Class TabularDataSupport
java.lang.Object
javax.management.openmbean.TabularDataSupport
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
,Object> TabularData
public class TabularDataSupport
extends Object
implements TabularData, Map<Object,Object>, Cloneable, Serializable
The
TabularDataSupport
class is the open data
class which implements the TabularData
and the Map
interfaces, and which is internally based on a hash map data structure.- Since:
- 1.5
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTabularDataSupport
(TabularType tabularType) Creates an emptyTabularDataSupport
instance whose open-type is tabularType, and whose underlyingHashMap
has a default initial capacity (101) and default load factor (0.75).TabularDataSupport
(TabularType tabularType, int initialCapacity, float loadFactor) Creates an emptyTabularDataSupport
instance whose open-type is tabularType, and whose underlyingHashMap
has the specified initial capacity and load factor. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
calculateIndex
(CompositeData value) Calculates the index that would be used in thisTabularData
instance to refer to the specified composite data value parameter if it were added to this instance.void
clear()
Removes all rows from thisTabularDataSupport
instance.clone()
Returns a clone of thisTabularDataSupport
instance: the clone is obtained by callingsuper.clone()
, and then cloning the underlying map.boolean
containsKey
(Object key) Returnstrue
if and only if thisTabularData
instance contains aCompositeData
value (ie a row) whose index is the specified key.boolean
containsKey
(Object[] key) Returnstrue
if and only if thisTabularData
instance contains aCompositeData
value (ie a row) whose index is the specified key.boolean
containsValue
(Object value) Returnstrue
if and only if thisTabularData
instance contains the specified value.boolean
containsValue
(CompositeData value) Returnstrue
if and only if thisTabularData
instance contains the specifiedCompositeData
value.entrySet()
Returns a collection view of the index to row mappings contained in thisTabularDataSupport
instance.boolean
Compares the specified obj parameter with thisTabularDataSupport
instance for equality.This method simply callsget((Object[]) key)
.Returns theCompositeData
value whose index is key, ornull
if there is no value mapping to key, in thisTabularData
instance.Returns the tabular type describing thisTabularData
instance.int
hashCode()
Returns the hash code value for thisTabularDataSupport
instance.boolean
isEmpty()
Returnstrue
if thisTabularDataSupport
instance contains no rows.keySet()
Returns a set view of the keys contained in the underlying map of thisTabularDataSupport
instance used to index the rows.This method simply callsput((CompositeData) value)
and therefore ignores its key parameter which can benull
.void
put
(CompositeData value) Adds value to thisTabularData
instance.void
Add all the values contained in the specified map t to thisTabularData
instance.void
putAll
(CompositeData[] values) Add all the elements in values to thisTabularData
instance.This method simply callsremove((Object[]) key)
.Removes theCompositeData
value whose index is key from thisTabularData
instance, and returns the removed value, or returnsnull
if there is no value whose index is key.int
size()
Returns the number of rows in thisTabularDataSupport
instance.toString()
Returns a string representation of thisTabularDataSupport
instance.values()
Returns a collection view of the rows contained in thisTabularDataSupport
instance.