Top Description Constructors Methods
org.assertj.core.util

public Class Maps

extends Object
Class Inheritance
Static Imports
org.assertj.core.configuration.ConfigurationProvider.CONFIGURATION_PROVIDER

Utility methods related to maps.
Authors
Yvonne Wang, Alex Ruiz, gabga

Constructor Summary

AccessConstructor and Description
private
Maps()

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the String representation of the given map.
format
(Map<?, ?>
the map to format.
map
)

Deprecated use StandardRepresentation#toStringOf(Map) instead.
Returns the String standard representation of the given map, or null if the given map is null.
public static String

Returns:

the String representation of the given map.
format
(Representation
the Representation to use.
p
,
Map<?, ?>
the map to format.
map
)

Deprecated use StandardRepresentation#toStringOf(Map) instead.
Returns the String representation of the given map, or null if the given map is null.
public static <K, V> Map<K, V>
newHashMap(K key, V value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mapsback to summary
private Maps()

Method Detail

formatback to summary
public static String format(Map<?, ?> map)

Returns the String standard representation of the given map, or null if the given map is null.

Parameters
map:Map<?, ?>

the map to format.

Returns:String

the String representation of the given map.

Annotations
@Deprecated
formatback to summary
public static String format(Representation p, Map<?, ?> map)

Returns the String representation of the given map, or null if the given map is null.

Parameters
p:Representation

the Representation to use.

map:Map<?, ?>

the map to format.

Returns:String

the String representation of the given map.

Annotations
@Deprecated
newHashMapback to summary
public static <K, V> Map<K, V> newHashMap(K key, V value)