|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TMap<K,V>
Interface extension to Map
which adds Trove-specific features.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
boolean |
forEachEntry(TObjectObjectProcedure<? super K,? super V> procedure)
Executes procedure for each key/value entry in the map. |
boolean |
forEachKey(TObjectProcedure<? super K> procedure)
Executes procedure for each key in the map. |
boolean |
forEachValue(TObjectProcedure<? super V> procedure)
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<? super K,? super V> procedure)
Retains only those entries in the map for which the procedure returns a true value. |
void |
transformValues(TObjectFunction<V,V> function)
Transform the values in this map using function. |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
V putIfAbsent(K key, V value)
key
- an Object
valuevalue
- 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
|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |