Package com.github.toolarium.common.util
Class MapUtil
java.lang.Object
com.github.toolarium.common.util.MapUtil
Map utility.
-
Method Summary
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
newMap
Create a new map- Type Parameters:
K- the keyV- the value- Returns:
- the created map
-
newMap
Create a new map- Type Parameters:
K- the keyV- the value- Parameters:
sorted- true if it is a sorted map- Returns:
- the created map
-
add
Add a map- Type Parameters:
K- the keyV- the value- Parameters:
map- the map to extendmapToAdd- the added map- Returns:
- the extended map
-