public class Maps
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Maps() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(java.util.Map<?,?> map)
|
private static java.lang.Object |
format(java.util.Map<?,?> map,
java.lang.Object o,
Representation p) |
static java.lang.String |
format(Representation p,
java.util.Map<?,?> map)
Returns the
String representation of the given map, or null if the given map is null. |
static boolean |
isNullOrEmpty(java.util.Map<?,?> map)
Indicates whether the given
Map is null or empty. |
static <K,V> java.util.concurrent.ConcurrentMap<K,V> |
newConcurrentHashMap()
Returns a mutable
ConcurrentMap that is empty. |
static <K,V> java.util.Map<K,V> |
newHashMap()
Returns a mutable
HashMap that is empty. |
static <K,V> java.util.WeakHashMap<K,V> |
newWeakHashMap()
Returns a mutable
WeakHashMap that is empty. |
public static <K,V> java.util.Map<K,V> newHashMap()
HashMap that is empty.HashMap.public static <K,V> java.util.concurrent.ConcurrentMap<K,V> newConcurrentHashMap()
ConcurrentMap that is empty.ConcurrentMap.public static <K,V> java.util.WeakHashMap<K,V> newWeakHashMap()
WeakHashMap that is empty.WeakHashMap.public static boolean isNullOrEmpty(java.util.Map<?,?> map)
Map is null or empty.map - the map to check.true if the given Map is null or empty, otherwise false.public static java.lang.String format(java.util.Map<?,?> map)
map - the map to format.String representation of the given map.public static java.lang.String format(Representation p, java.util.Map<?,?> map)
String representation of the given map, or null if the given map is null.map - the map to format.String representation of the given map.private static java.lang.Object format(java.util.Map<?,?> map,
java.lang.Object o,
Representation p)