net.sf.sasl.common.helper
Class MapHelper
java.lang.Object
net.sf.sasl.common.helper.MapHelper
public class MapHelper
- extends Object
Class offers some help operations for working with maps.
- Since:
- 0.0.2 (sasl-common-aspect-library)
- Author:
- Philipp Förmer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapHelper
public MapHelper()
removeNullKeyAndNullValues
public static <K,V> Map<K,V> removeNullKeyAndNullValues(Map<K,V> map)
- Creates a copy of the over given map. All null values and the null key
are removed from the copy.
- Type Parameters:
K
- V
- - Parameters:
map
- null or non null map.
- Returns:
- null or non null cleaned map.
- Since:
- 0.0.2 (sasl-common-aspect-library)
Copyright © 2010. All Rights Reserved.