javax.management.openmbean
public interface CompositeData
Since: 1.5
| Method Summary | |
|---|---|
| boolean | containsKey(String key)
Returns true if this {@link CompositeData} instance contains
the specified key. |
| boolean | containsValue(Object value)
Returns true if this {@link CompositeData} instance has
a value equal to that supplied.
|
| boolean | equals(Object obj)
Compares the specified object with this object for equality.
|
| Object | get(String key)
Retrieves the value for the specified key.
|
| Object[] | getAll(String[] keys)
Returns the appropriate value for each key in the given array,
using the same ordering.
|
| CompositeType | getCompositeType()
Returns the composite type which corresponds to this instance
of {@link CompositeData}.
|
| int | hashCode()
Returns the hash code of this instance. |
| String | toString()
Returns a textual representation of this instance. |
| Collection<?> | values()
Returns a read-only collection of the values associated with
this instance. |
null or the empty string.
Parameters: key the key to find in the structure.
Returns: true if the key exists.
Parameters: value the value to look for.
Returns: true if the value exists.
Parameters: obj the object to compare for equality.
Returns: true if obj is equal to this.
Parameters: key the key whose value should be returned.
Returns: the matching value.
Throws: IllegalArgumentException if the key is null
or the empty string. InvalidKeyException if the key does not exist.
Parameters: keys the keys whose values should be returned.
Returns: the matching values.
Throws: IllegalArgumentException if one of the keys is
null or the
empty string. InvalidKeyException if one of the keys does not exist.
Returns: the composite type for this instance.
e1.equals(e2) implies
e1.hashCode() == e2.hashCode(), holds for any pair
of instances, e1 and e2.
Returns: the hash code of this {@link CompositeData}.
See Also: equals
key=value for each pair of key and value.
Returns: a {@link java.lang.String} representation of the object.
Returns: the values of this instance.