Package org.fest.util
Class Maps
- java.lang.Object
-
- org.fest.util.Maps
-
public class Maps extends java.lang.Object
Utility methods related to maps.- Author:
- Yvonne Wang, Alex Ruiz
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
format(java.util.Map<?,?> map)
Returns theString
representation of the given map, ornull
if the given map isnull
.static boolean
isNullOrEmpty(java.util.Map<?,?> map)
Indicates whether the givenMap
isnull
or empty.
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(java.util.Map<?,?> map)
Indicates whether the givenMap
isnull
or empty.- Parameters:
map
- the map to check.- Returns:
true
if the givenMap
isnull
or empty, otherwisefalse
.
-
format
public static java.lang.String format(java.util.Map<?,?> map)
Returns theString
representation of the given map, ornull
if the given map isnull
.- Parameters:
map
- the map to format.- Returns:
- the
String
representation of the given map.
-
-