|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.openmbean.TabularDataSupport
public class TabularDataSupport
An implementation of TabularData.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
TabularDataSupport(TabularType tabularType)
Construct Tabular Data with an initial capacity of 101 and a load factor of 0.75 |
|
TabularDataSupport(TabularType tabularType,
int initialCapacity,
float loadFactor)
Construct Tabular Data |
Method Summary | |
---|---|
Object[] |
calculateIndex(CompositeData value)
Calculate the index for the value passed if it were added to the tabular data. |
void |
clear()
Removes all CompositeData values from the Tabular Data |
Object |
clone()
|
boolean |
containsKey(Object key)
|
boolean |
containsKey(Object[] key)
Determine whether the tabular data contains the passed value as a row. |
boolean |
containsValue(CompositeData value)
Determine whether the tabular data contains the passed value. |
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object obj)
Compares the specified obj parameter with this TabularDataSupport instance for equality. |
Object |
get(Object key)
|
CompositeData |
get(Object[] key)
Retrieve the composite data for the passed index. |
TabularType |
getTabularType()
Retrieve the tabular type for this tabular data |
int |
hashCode()
Generates a hashcode for the implementation. |
boolean |
isEmpty()
Determine whether the tabular data is empty. |
Set |
keySet()
Returns a set view of the index values. |
void |
put(CompositeData value)
Add a value to the tabular data. |
Object |
put(Object key,
Object value)
|
void |
putAll(CompositeData[] values)
Add all the passed values. |
void |
putAll(Map t)
|
Object |
remove(Object key)
|
CompositeData |
remove(Object[] key)
Removes the value for the passed and returns the removed value, or null if the key was not present. |
int |
size()
Retrieve the number of rows in the tabular data. |
String |
toString()
A string representation of the open mbean operation info. |
Collection |
values()
Returns a set view of the row values. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TabularDataSupport(TabularType tabularType)
tabularType
- the tabular type of the data
IllegalArgumentException
- for a null argumentpublic TabularDataSupport(TabularType tabularType, int initialCapacity, float loadFactor)
tabularType
- the tabular type of the datainitialCapacity
- the initial capacity of the maploadFactor
- the load factory of the map
IllegalArgumentException
- for a null argumentMethod Detail |
---|
public TabularType getTabularType()
TabularData
getTabularType
in interface TabularData
public Object[] calculateIndex(CompositeData value)
TabularData
calculateIndex
in interface TabularData
value
- the value for which the index is calculated.
public void clear()
TabularData
clear
in interface Map
clear
in interface TabularData
public boolean containsKey(Object[] key)
TabularData
containsKey
in interface TabularData
key
- the value to check
public boolean containsValue(CompositeData value)
TabularData
containsValue
in interface TabularData
value
- the value to check
public CompositeData get(Object[] key)
TabularData
get
in interface TabularData
key
- the index to retrievepublic boolean isEmpty()
TabularData
isEmpty
in interface Map
isEmpty
in interface TabularData
public Set keySet()
TabularData
keySet
in interface Map
keySet
in interface TabularData
public void put(CompositeData value)
TabularData
put
in interface TabularData
value
- the value to addpublic void putAll(CompositeData[] values)
TabularData
putAll
in interface TabularData
values
- the values to addpublic CompositeData remove(Object[] key)
TabularData
remove
in interface TabularData
key
- the index of the value to removepublic int size()
TabularData
size
in interface Map
size
in interface TabularData
public Collection values()
TabularData
values
in interface Map
values
in interface TabularData
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object key)
get
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map t)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public Object clone()
clone
in class Object
public boolean equals(Object obj)
equals
in interface Map
equals
in interface TabularData
equals
in class Object
obj
- the object to test
public int hashCode()
TabularData
The sum of the hashCodes for the elements mentioned in the equals method
hashCode
in interface Map
hashCode
in interface TabularData
hashCode
in class Object
public String toString()
TabularData
It is made up of implementation class and the values mentioned in the equals method
toString
in interface TabularData
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |