public interface ILcdAssocSet extends Serializable
ILcdAssoc
Modifier and Type | Method and Description |
---|---|
void |
add(ILcdAssoc aAssoc)
Adds an association to this set.
|
ILcdAssocSet |
cloneAsILcdAssocSet() |
Enumeration |
elements() |
ILcdAssoc[] |
getAssocs() |
Object |
getValue(Object aKey)
Gets the value associated with the given key.
|
boolean |
hasValue(Object aKey)
Tests if the set has a value for the given key.
|
Enumeration |
keys() |
void |
put(Object aKey,
Object aValue)
Adds an association having with a given value and a given key to this set.
|
Object |
remove(Object aKey)
Removes the association with the given key.
|
void |
removeAll()
Removes all the associations.
|
void |
setAssocs(ILcdAssoc[] aAssocArray)
Sets the associations as an array of
ILcdAssoc objects. |
int |
size() |
int size()
ILcdAssocSet
.Enumeration keys()
Enumeration elements()
void put(Object aKey, Object aValue)
aKey
- the key.aValue
- the value.ILcdAssoc[] getAssocs()
ILcdAssoc
objects.void setAssocs(ILcdAssoc[] aAssocArray)
ILcdAssoc
objects.void add(ILcdAssoc aAssoc)
aAssoc
- the association to be added.Object remove(Object aKey)
aKey
- the key of the association to be removed.null
if the
key does not exist.void removeAll()
boolean hasValue(Object aKey)
aKey
- the key to look up.Object getValue(Object aKey)
aKey
- the key to look up.null
if the
key does not exist.ILcdAssocSet cloneAsILcdAssocSet()
ILcdAssocSet
.