|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An Open Data Type for tabular data structures.
TabularDataSupport
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 |
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 |
equals(Object obj)
Tests whether two tabular data objects are equal |
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. |
void |
putAll(CompositeData[] values)
Add all the passed values. |
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. |
Method Detail |
public TabularType getTabularType()
public Object[] calculateIndex(CompositeData value)
value
- the value for which the index is calculated.
NullPointerException
- for a null value
InvalidOpenTypeException
- when the passed value is not
valid for the tabular data's row type.public int size()
public boolean isEmpty()
public boolean containsKey(Object[] key)
key
- the value to check
public boolean containsValue(CompositeData value)
value
- the value to check
public CompositeData get(Object[] key)
key
- the index to retrieve
NullPointerException
- when the passed key is null
InvalidKeyException
- when the passed key does match
the row type of the tabular data.public void put(CompositeData value)
value
- the value to add
NullPointerException
- when the passed value is null
InvalidOpenTypeException
- when the value is not valid for
the row type of the tabular data
KeyAlreadyExistsException
- when the index for the value
is already occupied.public CompositeData remove(Object[] key)
key
- the index of the value to remove
NullPointerException
- when the passed key is null
InvalidKeyException
- when the key is not valid for the
tabular datapublic void putAll(CompositeData[] values)
values
- the values to add
NullPointerException
- when the passed values is null or
an element of the values is null
InvalidOpenTypeException
- when one of value is not valid for
the row type of the tabular data
KeyAlreadyExistsException
- when the index for one of the values
is already occupied.public void clear()
public Set keySet()
public Collection values()
public boolean equals(Object obj)
The object is non-null
The object implements this interface
The row types are equal
The index to value mappings are equal
obj
- the object to test
public int hashCode()
The sum of the hashCodes for the elements mentioned in the equals method
public String toString()
It is made up of implementation class and the values mentioned in the equals method
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |