public class Maps extends Object
| 构造器和说明 |
|---|
Maps() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> Map<K,V> |
createMap(Class<?> mapType)
创建指定类型的Map
|
static <K,V> Map<V,K> |
inverse(Map<K,V> map) |
static <K,V> Map<V,K> |
inverse(Map<K,V> map,
Map<V,K> target) |
static <K,V> boolean |
isEmpty(Map<K,V> map) |
static <K,V> boolean |
isNotEmpty(Map<K,V> map) |
static <K extends Enum<K>,V> |
newEnumMap(Class<K> type) |
static <K,V> FluentMap<K,V> |
newFluentMap(Map<K,V> map) |
static <K,V> HashMap<K,V> |
newHashMap() |
static <K,V> Map<K,V> |
newLimitCapacityMap(int maxCapacity) |
static <K,V> Map<K,V> |
newLimitCapacityMap(int maxCapacity,
boolean accessOrder) |
static <K,V> LinkedHashMap<K,V> |
newLinkedHashMap() |
static <V> Map<String,V> |
newLowerCaseHashMap() |
static <V> Map<String,V> |
newLowerCaseLinkedHashMap() |
static <K,V> Map<K,V> |
newSoftHashMap() |
static <K,V> Map<K,V> |
newSoftKeyHashMap() |
static <K,V> Map<K,V> |
newSoftKeyMap(Map<Reference<K>,V> raw) |
static <K,V> Map<K,V> |
newSoftKeyMap(Supplier<Map<Reference<K>,V>> raw) |
static <K,V> Map<K,V> |
newSoftMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw) |
static <K,V> Map<K,V> |
newSoftMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> raw) |
static <K,V> Map<K,V> |
newSoftValueHashMap() |
static <K,V> Map<K,V> |
newSoftValueMap(Map<K,ValueReference<K,V>> raw) |
static <K,V> Map<K,V> |
newSoftValueMap(Supplier<Map<K,ValueReference<K,V>>> raw) |
static <K extends Comparable<K>,V> |
newTreeMap() |
static <V> Map<String,V> |
newUpperCaseHashMap() |
static <V> Map<String,V> |
newUpperCaseLinkedHashMap() |
static <K,V> Map<K,V> |
newWeakHashMap() |
static <K,V> Map<K,V> |
newWeakKeyHashMap() |
static <K,V> Map<K,V> |
newWeakKeyMap(Map<Reference<K>,V> raw) |
static <K,V> Map<K,V> |
newWeakKeyMap(Supplier<Map<Reference<K>,V>> raw) |
static <K,V> Map<K,V> |
newWeakMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw) |
static <K,V> Map<K,V> |
newWeakMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> raw) |
static <K,V> Map<K,V> |
newWeakValueHashMap() |
static <K,V> Map<K,V> |
newWeakValueMap(Map<K,ValueReference<K,V>> raw) |
static <K,V> Map<K,V> |
newWeakValueMap(Supplier<Map<K,ValueReference<K,V>>> raw) |
static <K,V> Map<V,K> |
reverse(Map<K,V> map)
反转键值生成新的Map对象
|
static <K,V> Map<V,K> |
reverse(Map<K,V> map,
Map<V,K> target) |
public static <K,V> Map<K,V> createMap(Class<?> mapType)
K - V - mapType - public static <K,V> Map<V,K> reverse(Map<K,V> map)
K - V - map - public static <K,V> Map<K,V> newLimitCapacityMap(int maxCapacity)
public static <K,V> Map<K,V> newLimitCapacityMap(int maxCapacity, boolean accessOrder)
public static <K,V> LinkedHashMap<K,V> newLinkedHashMap()
public static <K,V> HashMap<K,V> newHashMap()
public static <K extends Comparable<K>,V> TreeMap<K,V> newTreeMap()
public static <K,V> Map<K,V> newSoftHashMap()
public static <K,V> Map<K,V> newWeakHashMap()
public static <K,V> Map<K,V> newSoftKeyHashMap()
public static <K,V> Map<K,V> newWeakKeyHashMap()
public static <K,V> Map<K,V> newSoftValueHashMap()
public static <K,V> Map<K,V> newWeakValueHashMap()
public static <K,V> Map<K,V> newSoftMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> raw)
public static <K,V> Map<K,V> newWeakMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> raw)
public static <K,V> Map<K,V> newSoftValueMap(Supplier<Map<K,ValueReference<K,V>>> raw)
public static <K,V> Map<K,V> newWeakValueMap(Supplier<Map<K,ValueReference<K,V>>> raw)
public static <K,V> Map<K,V> newSoftMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw)
public static <K,V> Map<K,V> newWeakMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw)
public static <K,V> Map<K,V> newSoftValueMap(Map<K,ValueReference<K,V>> raw)
public static <K,V> Map<K,V> newWeakValueMap(Map<K,ValueReference<K,V>> raw)
public static <K,V> boolean isEmpty(Map<K,V> map)
public static <K,V> boolean isNotEmpty(Map<K,V> map)
Copyright © 2025 fossc. All rights reserved.