Package org.fest.util
Class Maps
java.lang.Object
org.fest.util.Maps
Utility methods related to maps.
- Author:
- Yvonne Wang, Alex Ruiz
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns theStringrepresentation of the given map, ornullif the given map isnull.static booleanisNullOrEmpty(Map<?, ?> map) Indicates whether the givenMapisnullor empty.
-
Method Details
-
isNullOrEmpty
Indicates whether the givenMapisnullor empty.- Parameters:
map- the map to check.- Returns:
trueif the givenMapisnullor empty, otherwisefalse.
-
format
Returns theStringrepresentation of the given map, ornullif the given map isnull.- Parameters:
map- the map to format.- Returns:
- the
Stringrepresentation of the given map.
-