public interface CompositeValue extends MetaValue
MetaValue
representing a Map<String,MetaValue>
, where the set of allowed keys and
their corresponding values' MetaTypes are specified by the associated CompositeMetaType
.MapCompositeValueSupport
,
CompositeValueSupport
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Tests whether a key is part of this composite value
|
boolean |
containsValue(MetaValue value)
Tests whether a item exists with the passed value
|
boolean |
equals(Object obj)
Tests whether two composite value objects are equal
|
MetaValue |
get(String key)
Retrieve the value for the item with the passed key
|
MetaValue[] |
getAll(String[] keys)
Retrieve the array of values for the item with the passed keys
|
CompositeMetaType |
getMetaType()
Get the metatype for this value
|
int |
hashCode()
Generates a hashcode for the implementation.
|
String |
toString()
A string representation of the open mbean operation info.
|
Collection<MetaValue> |
values()
The values of this composite value
|
CompositeMetaType getMetaType()
MetaValue
getMetaType
in interface MetaValue
MetaValue get(String key)
key
- the key to the itemIllegalArgumentException
- when the key is null or the empty string or when the key does not existMetaValue[] getAll(String[] keys)
keys
- an array of key valuesIllegalArgumentException
- when a key is null or the empty
string or the array is null or when a key does not existboolean containsKey(String key)
key
- the key to testboolean containsValue(MetaValue value)
value
- the value to testCollection<MetaValue> values()
An iterator over the returned collection returns result in ascending lexicographic order
boolean equals(Object obj)
The object is non-null
The object implements this interface
The composite meta types are equal
The values are equal
int hashCode()
The sum of the hashCodes for the elements mentioned in the equals method
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.