|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.openmbean.CompositeDataSupport
An implementation of CompositeData.
Constructor Summary | |
CompositeDataSupport(CompositeType compositeType,
Map items)
Construct Composite Data |
|
CompositeDataSupport(CompositeType compositeType,
String[] itemNames,
Object[] itemValues)
Construct Composite Data |
Method Summary | |
boolean |
containsKey(String key)
Tests whether a key is part of this composite data |
boolean |
containsValue(Object value)
Tests whether a item exists with the passed value |
boolean |
equals(Object obj)
Tests whether two composite data objects are equal |
Object |
get(String key)
Retrieve the value for the item with the passed key |
Object[] |
getAll(String[] keys)
Returns an array of the values of the items whose names are specified by keys, in the same order as keys. |
CompositeType |
getCompositeType()
Retrieve the composite type for this composite data |
int |
hashCode()
Returns the hash code value for this CompositeDataSupport instance. |
String |
toString()
Returns a string representation of this CompositeDataSupport instance. |
Collection |
values()
The values of this composite data |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompositeDataSupport(CompositeType compositeType, String[] itemNames, Object[] itemValues) throws OpenDataException
compositeType
- the composite type of the dataitemNames
- the names of the valuesitemValues
- the values
IllegalArgumentException
- for a null or empty argument
OpenDataException
- when the items do not match the
CompositeTypepublic CompositeDataSupport(CompositeType compositeType, Map items) throws OpenDataException
compositeType
- the composite type of the dataitems
- map of strings to values
IllegalArgumentException
- for a null or empty argument
OpenDataException
- when the items do not match the
CompositeType
ArrayStoreException
- when a key to the map is not a StringMethod Detail |
public CompositeType getCompositeType()
CompositeData
getCompositeType
in interface CompositeData
public Object get(String key)
CompositeData
get
in interface CompositeData
public Object[] getAll(String[] keys)
getAll
in interface CompositeData
public boolean containsKey(String key)
CompositeData
containsKey
in interface CompositeData
public boolean containsValue(Object value)
CompositeData
containsValue
in interface CompositeData
public Collection values()
CompositeData
An iterator over the returned collection returns result in ascending lexicographic order
values
in interface CompositeData
public boolean equals(Object obj)
CompositeData
The object is non-null
The object implements this interface
The composite types are equal
The values are equal
equals
in interface CompositeData
public int hashCode()
hashCode
in interface CompositeData
public String toString()
toString
in interface CompositeData
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |