| Package | Description |
|---|---|
| org.osgl.util |
| Modifier and Type | Field and Description |
|---|---|
static C.Map |
C.EMPTY_MAP |
| Modifier and Type | Method and Description |
|---|---|
C.Map<K,V> |
C.Map.accept(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of
#forEach(IndexedVisitor) |
C.Map<K,V> |
C.Map.each(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Alias of
#forEach(IndexedVisitor) |
C.Map<K,V> |
C.Map.filter(Lang.Function<K,Boolean> predicate) |
C.Map<V,K> |
C.Map.flipped() |
C.Map<K,V> |
C.Map.forEach(Lang.IndexedVisitor<? super K,? super V> indexedVisitor)
Loop through this map on each key/value pair, apply them to the function specified
|
static <K,V> C.Map<K,V> |
C.Map(boolean readOnly,
Map<K,V> map) |
static <K,V> C.Map<K,V> |
C.Map(Collection<Lang.Tuple<K,V>> kvCol) |
static <K,V> C.Map<K,V> |
C.Map(Map<? extends K,? extends V> map)
|
static <K,V> C.Map<K,V> |
C.Map(Object... args)
Create a immutable
Map from elements specified in an array. |
static <K,V> C.Map<K,V> |
C.newMap(Map<? extends K,? extends V> map)
|
static <K,V> C.Map<K,V> |
C.newMap(Object... args)
Create an new
Map from an array of elements. |
C.Map<K,V> |
C.Map.readOnly(boolean readOnly) |
C.Map<K,V> |
C.Map._Builder.to(V val) |
<K,V> C.Map<K,V> |
C.List.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor)
Create a
Map from this list using a key extract function and a value extract function |
<K,V> C.Map<K,V> |
ListBase.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor) |
<V> C.Map<T,V> |
C.List.toMapByKey(Lang.Function<? super T,? extends V> valExtractor)
Create a
Map from this list using a value extract function. |
<V> C.Map<T,V> |
ListBase.toMapByKey(Lang.Function<? super T,? extends V> valExtractor) |
<K> C.Map<K,T> |
C.List.toMapByVal(Lang.Function<? super T,? extends K> keyExtractor)
Create a
Map from this list using a key extract function. |
<K> C.Map<K,T> |
ListBase.toMapByVal(Lang.Function<? super T,? extends K> keyExtractor) |
<NK,NV> C.Map<NK,NV> |
C.Map.transform(Lang.Function<K,NK> keyTransformer,
Lang.Function<V,NV> valueTransformer) |
<NK> C.Map<NK,V> |
C.Map.transformKeys(Lang.Function<K,NK> keyTransformer) |
<NV> C.Map<K,NV> |
C.Map.transformValues(Lang.Function<V,NV> valueTransformer) |
C.Map<K,V> |
C.Map.valueFilter(Lang.Function<V,Boolean> predicate) |
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.