@Beta public interface IntMap<V> extends Serializable
Also contains the public inner class interface IntMap.Entry that all implementations of IntMap must also complete. Beta class. Classes under com.force.i18n.commons package will be moved into a dedicated project.
IntHashMap,
IntSet| Modifier and Type | Interface and Description |
|---|---|
static interface |
IntMap.Entry<V> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all mappings from this map.
|
boolean |
containsKey(int key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
Set<IntMap.Entry<V>> |
entrySet()
Returns a collection view of the mappings contained in this map.
|
V |
get(int key)
Returns the value to which this map maps the specified key.
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
IntSet |
keySet()
Returns a set view of the keys contained in this map.
|
V |
put(int key,
V value)
Associates the specified value with the specified key in this map.
|
void |
putAll(IntMap<? extends V> t)
Copies all of the mappings from the specified map to this one.
|
V |
remove(int key)
Removes the mapping for this key from this map if present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
Collection<V> |
values()
Returns a collection view of the values contained in this map.
|
int size()
boolean isEmpty()
boolean containsValue(Object value)
value - value whose presence in this map is to be tested.boolean containsKey(int key)
key - key whose presence in this Map is to be tested.V get(int key)
key - key whose associated value is to be returned.V put(int key, V value)
key - key with which the specified value is to be associated.value - value to be associated with the specified key.V remove(int key)
key - key whose mapping is to be removed from the map.void putAll(IntMap<? extends V> t)
t - Mappings to be stored in this map.void clear()
IntSet keySet()
Collection<V> values()
Set<IntMap.Entry<V>> entrySet()
IntMap.EntryCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.