|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.openmbean.CompositeDataSupport
public class 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
CompositeType
public 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 String| Method Detail |
|---|
public CompositeType getCompositeType()
CompositeData
getCompositeType in interface CompositeDatapublic Object get(String key)
CompositeData
get in interface CompositeDatapublic Object[] getAll(String[] keys)
getAll in interface CompositeDatapublic boolean containsKey(String key)
CompositeData
containsKey in interface CompositeDatapublic boolean containsValue(Object value)
CompositeData
containsValue in interface CompositeDatapublic Collection values()
CompositeDataAn iterator over the returned collection returns result in ascending lexicographic order
values in interface CompositeDatapublic 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 CompositeDataequals in class Objectobj - the object to test
public int hashCode()
hashCode in interface CompositeDatahashCode in class Objectpublic String toString()
toString in interface CompositeDatatoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||