org.fest.util
Class Maps

java.lang.Object
  extended by org.fest.util.Maps

public class Maps
extends Object

Understands utility methods related to maps.

Author:
Yvonne Wang, Alex Ruiz

Method Summary
static String format(Map<?,?> map)
          Returns the String representation of the given map, or null if the given map is null.
static boolean isEmpty(Map<?,?> map)
          Returns true if the given map is null or empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public static boolean isEmpty(Map<?,?> map)
Returns true if the given map is null or empty.

Parameters:
map - the map to check.
Returns:
true if the given map is null or empty, otherwise false.

format

public static String format(Map<?,?> map)
Returns the String representation of the given map, or null if the given map is null.

Parameters:
map - the map to format.
Returns:
the String representation of the given map.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.