public static class C.Map<K,V> extends Object implements Map<K,V>, Serializable
Modifier and Type | Class and Description |
---|---|
class |
C.Map._Builder |
static class |
C.Map.Entry<K,V> |
Modifier | Constructor and Description |
---|---|
protected |
Map(boolean readOnly,
Map<? extends K,? extends V> map) |
protected |
Map(boolean readOnly,
Object... args) |
Modifier and Type | Method and Description |
---|---|
C.Map<K,V> |
accept(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of
#forEach(IndexedVisitor) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
C.Map<K,V> |
each(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of
#forEach(IndexedVisitor) |
C.Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
C.Map<K,V> |
filter(Lang.Function<K,Boolean> predicate) |
C.Map<V,K> |
flipped() |
C.Map<K,V> |
forEach(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Loop through this map on each key/value pair, apply them to the function specified
|
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isReadOnly() |
Set<K> |
keySet() |
C.Map._Builder |
map(K key) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
C.Map<K,V> |
readOnly(boolean readOnly) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
<NK,NV> C.Map<NK,NV> |
transform(Lang.Function<K,NK> keyTransformer,
Lang.Function<V,NV> valueTransformer) |
<NK> C.Map<NK,V> |
transformKeys(Lang.Function<K,NK> keyTransformer) |
<NV> C.Map<K,NV> |
transformValues(Lang.Function<V,NV> valueTransformer) |
C.Map<K,V> |
valueFilter(Lang.Function<V,Boolean> predicate) |
Collection<V> |
values() |
C.Set<Lang.Binary<K,V>> |
zip() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Map(boolean readOnly, Object... args)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public int hashCode()
public boolean equals(Object o)
public C.Map._Builder map(K key)
public boolean isReadOnly()
public C.Map<K,V> forEach(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Loop through this map on each key/value pair, apply them to the function specified
indexedVisitor
- the function that takes argument of (key, value) pairpublic C.Map<K,V> each(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of #forEach(IndexedVisitor)
indexedVisitor
- the visitor that can be applied on Key/Value pair stored in this Mappublic C.Map<K,V> accept(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of #forEach(IndexedVisitor)
indexedVisitor
- the visitor that can be applied on Key/Value pair stored in this Mappublic <NV> C.Map<K,NV> transformValues(Lang.Function<V,NV> valueTransformer)
public <NK> C.Map<NK,V> transformKeys(Lang.Function<K,NK> keyTransformer)
public <NK,NV> C.Map<NK,NV> transform(Lang.Function<K,NK> keyTransformer, Lang.Function<V,NV> valueTransformer)
public C.Set<Lang.Binary<K,V>> zip()
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.