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