CompositeData (Java SE 15 & JDK 15) (original) (raw)

All Known Implementing Classes:

[CompositeDataSupport](CompositeDataSupport.html "class in javax.management.openmbean"), [GcInfo](../../../../jdk.management/com/sun/management/GcInfo.html "class in com.sun.management")


public interface CompositeData

The CompositeData interface specifies the behavior of a specific type of complex open data objects which represent composite data structures.

Since:

1.5

Modifier and Type Method Description
boolean containsKey​(String key) Returns true if and only if this CompositeData instance contains an item whose name is key.
boolean containsValue​(Object value) Returns true if and only if this CompositeData instance contains an item whose value is value.
boolean equals​(Object obj) Compares the specified obj parameter with thisCompositeData instance for equality.
Object get​(String key) Returns the value of the item whose name is 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() Returns the composite type of this composite data instance.
int hashCode() Returns the hash code value for this CompositeData instance.
String toString() Returns a string representation of this CompositeData instance.
Collection<?> values() Returns an unmodifiable Collection view of the item values contained in this CompositeData instance.