public class Maps extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Map<?,?> map)
|
static String |
format(Representation p,
Map<?,?> map)
Returns the
String representation of the given map, or null if the given map is null. |
static boolean |
isNullOrEmpty(Map<?,?> map)
Indicates whether the given
Map is null or empty. |
static <K,V> ConcurrentMap<K,V> |
newConcurrentHashMap()
Returns a mutable
ConcurrentMap that is empty. |
static <K,V> Map<K,V> |
newHashMap()
Returns a mutable
HashMap that is empty. |
static <K,V> WeakHashMap<K,V> |
newWeakHashMap()
Returns a mutable
WeakHashMap that is empty. |
public static <K,V> Map<K,V> newHashMap()
HashMap that is empty.HashMap.public static <K,V> ConcurrentMap<K,V> newConcurrentHashMap()
ConcurrentMap that is empty.ConcurrentMap.public static <K,V> WeakHashMap<K,V> newWeakHashMap()
WeakHashMap that is empty.WeakHashMap.public static boolean isNullOrEmpty(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 String format(Map<?,?> map)
map - the map to format.String representation of the given map.public static String format(Representation p, 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.Copyright © 2013-2014 AssertJ. All Rights Reserved.