public interface TMap<K,V> extends Map<K ,V>
Map which adds Trove-specific features.
| Modifier and Type | Method and Description |
|---|---|
boolean |
forEachEntry(TObjectObjectProcedure
Executes
procedure for each key/value entry in the map.
|
boolean |
forEachKey(TObjectProcedure
Executes
procedure for each key in the map.
|
boolean |
forEachValue(TObjectProcedure
Executes
procedure for each value in the map.
|
V |
putIfAbsent(K key, V value)
Inserts a key/value pair into the map if the specified key is not already associated with a value.
|
boolean |
retainEntries(TObjectObjectProcedure
Retains only those entries in the map for which the procedure returns a true value.
|
void |
transformValues(TObjectFunction
Transform the values in this map using
function.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, remove, remove, replace, replace, replaceAll, size, valuesV putIfAbsent(K key, V value)
putIfAbsent in interface
Map<K,V>
key - an
Object value
value - an
Object value
null if none was found.
boolean forEachKey(TObjectProcedure<? super K> procedure)
procedure - a
TObjectProcedure value
boolean forEachValue(TObjectProcedure<? super V> procedure)
procedure - a
TObjectProcedure value
boolean forEachEntry(TObjectObjectProcedure<? super K ,? super V> procedure)
procedure - a
TObjectObjectProcedure value
boolean retainEntries(TObjectObjectProcedure<? super K ,? super V> procedure)
procedure - determines which entries to keep
void transformValues(TObjectFunction<V ,V> function)
function - a
TObjectFunction value