org.almendra.commons.util.collection
Class MapUtility
java.lang.Object
org.almendra.commons.util.collection.MapUtility
public class MapUtility
- extends java.lang.Object
Constructor Summary |
MapUtility()
Creates a new MapUtility object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapUtility
public MapUtility()
- Creates a new
MapUtility
object.
keyOfValue
public static java.lang.Object keyOfValue(java.util.Map map,
java.lang.Object value)
getValuesInOrder
public static java.util.List getValuesInOrder(java.util.Map map,
java.util.List keysInOrder)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getKeysWithSmallestIntegerValue
public static java.util.List getKeysWithSmallestIntegerValue(java.util.Map map)
getKeyWithGreatestIntegerValue
public static java.lang.Object getKeyWithGreatestIntegerValue(java.util.Map map)
getKeysWithGreatestIntegerValue
public static java.util.List getKeysWithGreatestIntegerValue(java.util.Map map)
getKeysWithSmallestLongValue
public static java.util.List getKeysWithSmallestLongValue(java.util.Map map)
getKeyWithSmallestIntegerValue
public static java.lang.Object getKeyWithSmallestIntegerValue(java.util.Map queueSizeByAgentPath)
- Parameters:
queueSizeByAgentPath
-
- Returns:
getKeyOfValue
public static java.lang.Object getKeyOfValue(java.util.Map map,
java.lang.Object value)
- Parameters:
agent
-
- Returns:
putAll
public static void putAll(java.util.Map map,
java.lang.Object value,
java.util.Collection collection)
- Parameters:
capabilitiesByCandidateNode
- string
- nodes
-