|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.collections.MapUtils
public class MapUtils
Utility class for the use of Map object.
| Constructor Summary | |
|---|---|
MapUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
getKeyFromValue(java.util.Map<K,V> map,
V value)
Returns the first founded key from the given value or null if nothing is found. |
|
static
|
getKeysFromValue(java.util.Map<K,V> map,
V value)
Returns a Collection from all founded keys from the given value or null if nothing found. |
|
static
|
printMap(java.util.Map<K,V> msg)
The Method printMap prints the HashMap to the console. |
|
static
|
toGenericMap(T[][] twoDimArray)
Converts a two dimensional Array to a Map. |
|
static java.util.Map<java.lang.String,java.lang.String> |
toMap(java.lang.String[][] twoDimArray)
Converts a two dimensional String Array to a Map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapUtils()
| Method Detail |
|---|
public static <K,V> K getKeyFromValue(java.util.Map<K,V> map,
V value)
map - The Map.value - The value.
public static <K,V> java.util.Collection<K> getKeysFromValue(java.util.Map<K,V> map,
V value)
map - The Map.value - The value.
public static <K,V> void printMap(java.util.Map<K,V> msg)
msg - The map to print.public static <T> java.util.Map<T,T> toGenericMap(T[][] twoDimArray)
twoDimArray - The two dimensional Array.
public static java.util.Map<java.lang.String,java.lang.String> toMap(java.lang.String[][] twoDimArray)
twoDimArray - The two dimensional String Array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||