| 程序包 | 说明 |
|---|---|
| code.ponfee.commons.collect | |
| code.ponfee.commons.serial | |
| code.ponfee.commons.tree |
| 类和说明 |
|---|
| ArrayHashKey
The class use in Object array as hash map key
Use for HashMap key
|
| ByteArrayWrapper
The class use in byte array as hash map key
For HashMap key
|
| FilterableIterator
遍历集合,选取符合条件的元素,用于增强for循环场景
for (String s : FilterableIterator.of("", null, "a")) {
System.out.println(s);
}
|
| ImmutableArrayList
Representing immutable List
|
| ValueSortedMap
Extends TreeMap sort by value:
ValueSortedMap valueSortedMap = ValueSortedMap.nullsFirst(a map);
Also use like this:
Map<String, Integer> originMap = ImmutableMap.of("b", 2, "a", 1);
TreeMap<String, Integer> sortedByValueMap = new TreeMap<>(Comparator.comparing(originMap::get));
sortedByValueMap.putAll(originMap);
|
| 类和说明 |
|---|
| ByteArrayTrait
Represents the class has an byte[] array args constructor and a toByteArray method
For serialize
|
| ByteArrayWrapper
The class use in byte array as hash map key
For HashMap key
|
| 类和说明 |
|---|
| ImmutableArrayList
Representing immutable List
|
Copyright © 2022. All rights reserved.