|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUtils.MapUtils
public class MapUtils
Utility class for maps
Method Summary | ||
---|---|---|
static
|
keySetSortedByValue(java.util.Map<K,V> map)
Returns the key set sorted by the associated value |
|
static
|
keySetSortedByValueReverse(java.util.Map<K,V> map)
Returns the key sey sorted by the associated value in reverse order |
|
static
|
reverseLookup(java.util.Map<K,V> map,
V value)
Reverse lookup in the map. |
|
static
|
reverseLookupMulti(java.util.Map<K,V> map,
V value)
Reverse lookup in the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K,V extends java.lang.Comparable<V>> java.util.List<K> keySetSortedByValue(java.util.Map<K,V> map)
K
- Type of the map's keysV
- Tyoe of the map's valuesmap
- The map
public static <K,V extends java.lang.Comparable<V>> java.util.List<K> keySetSortedByValueReverse(java.util.Map<K,V> map)
K
- Type of the map's keysV
- Type of the map's valuesmap
- The map
public static <K,V> K reverseLookup(java.util.Map<K,V> map, V value)
K
- Type of the map's keyV
- Type of the map's avluesmap
- The mapvalue
- The value to return a key for
public static <K,V> java.util.Set<K> reverseLookupMulti(java.util.Map<K,V> map, V value)
K
- The type of the map's keysV
- The type of the map's valuesmap
- The mapvalue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |