|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXPDictionary
The IXPDictionary
class is the abstract parent of any
class, such as IXPHashtable
, which maps keys to values.
Every key and every value is an object. In any one IXPDictionary
object, every key is associated with at most one value. Given a
IXPDictionary and a key, the associated element can be looked up.
Any non-null
object can be used as a key and as a value.
As a rule, the equals
method should be used by
implementations of this class to decide if two keys are the same.
Method Summary | |
---|---|
boolean |
ContainsKey(java.lang.Object key)
Returns if the input key exists in this IXPDictionary. |
java.lang.Object |
GetElement(java.lang.Object key)
Returns the value to which the key is mapped in this dictionary. |
IXPEnumerator |
GetElements()
Returns an enumeration of the Elements in this IXPDictionary. |
IXPDictionaryEnumerator |
GetEnumerator()
Returns IXPDictionaryEnumerator for this dictionary, each of whose elements is an XPDictionaryEntry. |
IXPEnumerator |
GetKeys()
Returns an enumeration of the keys in this IXPDictionary. |
int |
GetSize()
Returns the number of entries (dinstint keys) in this dictionary. |
java.lang.Object |
PutElement(java.lang.Object key,
java.lang.Object _value)
Removes the key (and its corresponding
value ) from this dictionary. |
java.lang.Object |
RemoveElement(java.lang.Object key)
Removes the key (and its corresponding
value ) from this dictionary. |
Method Detail |
---|
boolean ContainsKey(java.lang.Object key)
key
- to be verified in the IXPDictionary.
IXPEnumerator GetKeys()
IXPEnumerator GetElements()
IXPDictionaryEnumerator GetEnumerator()
java.lang.Object GetElement(java.lang.Object key)
key
- a key in this dictionary.
null
if the key is not mapped to any value in
this dictionary.
java.lang.NullPointerException
- if the key is null.java.lang.Object PutElement(java.lang.Object key, java.lang.Object _value)
key
(and its corresponding
value
) from this dictionary. This method does nothing
if the key
is not in this dictionary.
key
- the key that needs to be added._value
- The Value to be associated with the key.
key
had been mapped in this
dictionary.java.lang.Object RemoveElement(java.lang.Object key)
key
(and its corresponding
value
) from this dictionary. This method does nothing
if the key
is not in this dictionary.
key
- the key that needs to be removed.
key
had been mapped in this
dictionary, or null
if the key did not have a
mapping.
java.lang.NullPointerException
- if key is null.int GetSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |