Package org.assertj.core.util
Class Maps
- java.lang.Object
-
- org.assertj.core.util.Maps
-
public class Maps extends Object
Utility methods related to maps.- Author:
- Yvonne Wang, Alex Ruiz, gabga
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Maps()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
format(Map<?,?> map)
Deprecated.useStandardRepresentation.toStringOf(Map)
instead.static String
format(Representation p, Map<?,?> map)
Deprecated.useStandardRepresentation.toStringOf(Map)
instead.static <K,V>
Map<K,V>newHashMap(K key, V value)
-
-
-
Method Detail
-
format
@Deprecated public static String format(Map<?,?> map)
Deprecated.useStandardRepresentation.toStringOf(Map)
instead.- Parameters:
map
- the map to format.- Returns:
- the
String
representation of the given map.
-
format
@Deprecated public static String format(Representation p, Map<?,?> map)
Deprecated.useStandardRepresentation.toStringOf(Map)
instead.Returns theString
representation of the given map, ornull
if the given map isnull
.- Parameters:
p
- theRepresentation
to use.map
- the map to format.- Returns:
- the
String
representation of the given map.
-
newHashMap
public static <K,V> Map<K,V> newHashMap(K key, V value)
-
-