public interface IlpValueMap extends Map
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
.
Modifier and Type | Method and Description |
---|---|
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.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Class getKeyClass()
Class getValueClass()
Object getValue(Object key)
key
- The key associated with the value to retrieve.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.