| 程序包 | 说明 |
|---|---|
| net.dongliu.commons.collection |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ExHashMap<K,V>
Expanded hash map
|
class |
ExLinkedHashMap<K,V>
Expanded linked hash map
|
class |
ExTreeMap<K,V>
Expanded tree map
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> ExMap<K,V> |
ExMap.of()
Create mutable empty map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key,
V value)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5,
K key6,
V value6)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5,
K key6,
V value6,
K key7,
V value7)
create mutable map
|
static <K,V> ExMap<K,V> |
ExMap.of(Pair<K,V>... pairs)
Create mutable map
|
default <K,U> ExMap<K,U> |
ExStream.toMap(java.util.function.Function<? super T,? extends K> keyMapper,
java.util.function.Function<? super T,? extends U> valueMapper)
Collect item to a map.
|
default <K,U> ExMap<K,U> |
ExStream.toMap(java.util.function.Function<? super T,? extends K> keyMapper,
java.util.function.Function<? super T,? extends U> valueMapper,
java.util.function.BinaryOperator<U> merger)
Collect item to a map.
|
static <K,V> ExMap<K,V> |
ExMap.wrap(Map<K,V> map)
If map is not EnhancedMap, wrap to EnhancedMap
|
Copyright © 2015. All rights reserved.