|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CompositeData
Provides an interface to a composite data structure, in order to aid interoperability. The composite data structure is represented by mapping field names to values.
| Method Summary | |
|---|---|
boolean |
containsKey(String key)
Returns true if this CompositeData instance contains
the specified key. |
boolean |
containsValue(Object value)
Returns true if this 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 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. |
| Method Detail |
|---|
boolean containsKey(String key)
CompositeData instance contains
the specified key. This method always returns false for
an input key equal to null or the empty string.
key - the key to find in the structure.
boolean containsValue(Object value)
CompositeData instance has
a value equal to that supplied.
value - the value to look for.
boolean equals(Object obj)
CompositeData with the same name-value
mappings and types. The two compared instances may be
equivalent even if they represent different implementations of
CompositeData.
equals in class Objectobj - the object to compare for equality.
obj is equal to this.Object.hashCode()Object get(String key)
key - the key whose value should be returned.
IllegalArgumentException - if the key is null
or the empty string.
InvalidKeyException - if the key does not exist.Object[] getAll(String[] keys)
keys - the keys whose values should be returned.
IllegalArgumentException - if one of the keys is
null or the
empty string.
InvalidKeyException - if one of the keys does not exist.CompositeType getCompositeType()
CompositeData.
int hashCode()
e1.equals(e2) implies
e1.hashCode() == e2.hashCode(), holds for any pair
of instances, e1 and e2.
- Overrides:
hashCode in class Object
- Returns:
- the hash code of this
CompositeData. - See Also:
Object.equals(Object)
String toString()
key=value for each pair of key and value.
toString in class ObjectString representation of the
object.Object.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)Collection<?> values()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||