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

    Nested classes/interfaces declared in interface java.util.Map

    Map.Entry<K,V>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty TabularDataSupport instance whose open-type is tabularType, and whose underlying HashMap has a default initial capacity (101) and default load factor (0.75).
    TabularDataSupport(TabularType tabularType, int initialCapacity, float loadFactor)
    Creates an empty TabularDataSupport instance whose open-type is tabularType, and whose underlying HashMap has the specified initial capacity and load factor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Calculates the index that would be used in this TabularData instance to refer to the specified composite data value parameter if it were added to this instance.
    void
    Removes all rows from this TabularDataSupport instance.
    Returns a clone of this TabularDataSupport instance: the clone is obtained by calling super.clone(), and then cloning the underlying map.
    boolean
    Returns true if and only if this TabularData instance contains a CompositeData value (ie a row) whose index is the specified key.
    boolean
    Returns true if and only if this TabularData instance contains a CompositeData value (ie a row) whose index is the specified key.
    boolean
    Returns true if and only if this TabularData instance contains the specified value.
    boolean
    Returns true if and only if this TabularData instance contains the specified CompositeData value.
    Returns a collection view of the index to row mappings contained in this TabularDataSupport instance.
    boolean
    Compares the specified obj parameter with this TabularDataSupport instance for equality.
    get(Object key)
    This method simply calls get((Object[]) key).
    get(Object[] key)
    Returns the CompositeData value whose index is key, or null if there is no value mapping to key, in this TabularData instance.
    Returns the tabular type describing this TabularData instance.
    int
    Returns the hash code value for this TabularDataSupport instance.
    boolean
    Returns true if this TabularDataSupport instance contains no rows.
    Returns a set view of the keys contained in the underlying map of this TabularDataSupport instance used to index the rows.
    put(Object key, Object value)
    This method simply calls put((CompositeData) value) and therefore ignores its key parameter which can be null.
    void
    Adds value to this TabularData instance.
    void
    putAll(Map<?,?> t)
    Add all the values contained in the specified map t to this TabularData instance.
    void
    Add all the elements in values to this TabularData instance.
    This method simply calls remove((Object[]) key).
    remove(Object[] key)
    Removes the CompositeData value whose index is key from this TabularData instance, and returns the removed value, or returns null if there is no value whose index is key.
    int
    Returns the number of rows in this TabularDataSupport instance.
    Returns a string representation of this TabularDataSupport instance.
    Returns a collection view of the rows contained in this TabularDataSupport instance.

    Methods declared in class java.lang.Object

    finalize, getClass, notify, notifyAll,