|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.util.Maps
public class Maps
Utility methods related to maps.
| Method Summary | ||
|---|---|---|
static String |
format(Map<?,?> map)
Returns the String standard representation of
the given map, or null if the given map is null. |
|
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
|
newConcurrentHashMap()
Returns a mutable ConcurrentMap that is empty. |
|
static
|
newHashMap()
Returns a mutable HashMap that is empty. |
|
static
|
newWeakHashMap()
Returns a mutable WeakHashMap that is empty. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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)
String standard representation of
the given map, or null if the given map is null.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||