|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpValueMap
This interface extends the Map interface to create a named
value map associating specifically typed keys with specifically typed values.
In addition to enforcing type restrictions, the type information can be used
to filter value maps based on specific Java types. For instance, you can get
a list of value maps for Integer values returning an Icon.
Compatibility Note: In JViews 8.0, this class was moved from
ilog.cpl.service to ilog.cpl.util.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
boolean |
addValue(Object key,
Object value)
Adds a new key-value pair. |
Class |
getKeyClass()
Returns the Java type of the keys used in this value map. |
Object |
getValue(Object key)
Returns the mapped value associated with a key. |
Class |
getValueClass()
Returns the Java type of the values returned by this value map. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
Class getKeyClass()
Class getValueClass()
Object getValue(Object key)
key - The key associated with the value to retrieve.
boolean addValue(Object key,
Object value)
key - The key for the key-value pair.value - The value to be added.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||