/**
* Utility class to perform various operations on Maps.
- *
+ *
* @author Adrian Woodhead
*/
public final class MapUtilities {
/**
* Puts the passed key and value into the map only if the value is not null.
- *
+ *
* @param map Map to add key and value to.
* @param key Map key.
* @param value Map value, if null will not be added to map.
/**
* Puts the passed key and value into the map only if the value is not null.
- *
+ *
* @param map Map to add key and value to.
* @param key Map key.
* @param value Map value, if null will not be added to map.
/**
* Puts the passed key and value into the map only if the value is not -1.
- *
+ *
* @param map Map to add key and value to.
* @param key Map key.
* @param value Map value, if -1 will not be added to map.
/**
* Puts the passed key and value into the map only if the value is not -1.
- *
+ *
* @param map Map to add key and value to.
* @param key Map key.
* @param value Map value, if -1 will not be added to map.