|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.MapUtil
public final class MapUtil
Method Summary | ||
---|---|---|
static Object[] |
getKeyObjects(Map<?,?> m)
|
|
static String[] |
getKeyStrings(Map<?,?> m)
|
|
static
|
getNullValueKeys(Map<K,?> m)
|
|
static
|
getWithDefault(Map<K,V> m,
K key,
V defaultValue)
|
|
static boolean |
isAllStrings(Map<?,?> m)
|
|
static boolean |
mapsEqual(Map<?,?> m1,
Map<?,?> m2)
|
|
static
|
newMap(Map<K,V> m1,
Map<K,V> m2)
Create a new Map consisting of a single key/value pair. |
|
static Map<String,String> |
newMap(String[] mappings)
Create a new Map and insert the specified mappings as found in 'mappings'. |
|
static
|
newMap(String key,
V value)
Create a new Map consisting of a single key/value pair. |
|
static
|
newMap(T[] mappings)
Create a new Map and insert the specified mappings as found in 'mappings'. |
|
static
|
newMapNoNullValues(Map<K,V> m)
|
|
static
|
removeAll(Map<K,?> m,
Set<K> s)
|
|
static
|
removeAll(Map<T,?> m,
T[] keys)
Remove all entries keyed by 'keys' |
|
static
|
toMap(Properties props,
Class<K> kClass,
Class<V> vClass)
|
|
static String |
toString(Map<?,?> m)
|
|
static String |
toString(Map<?,?> m,
String separator)
|
|
static Map<String,String> |
toStringStringMap(Map<?,?> m)
Convert an arbitrary Map to one whose keys and values are both of type String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K,V> V getWithDefault(Map<K,V> m, K key, V defaultValue)
public static Object[] getKeyObjects(Map<?,?> m)
public static String[] getKeyStrings(Map<?,?> m)
public static <V> Map<String,V> newMap(String key, V value)
public static <K,V> Map<K,V> newMap(Map<K,V> m1, Map<K,V> m2)
public static <T> Map<T,T> newMap(T[] mappings)
public static Map<String,String> newMap(String[] mappings)
public static <T> void removeAll(Map<T,?> m, T[] keys)
public static boolean mapsEqual(Map<?,?> m1, Map<?,?> m2)
public static <K,V> Map<K,V> newMapNoNullValues(Map<K,V> m)
public static String toString(Map<?,?> m)
public static String toString(Map<?,?> m, String separator)
public static <K> Set<K> getNullValueKeys(Map<K,?> m)
public static <K,V> Map<K,V> toMap(Properties props, Class<K> kClass, Class<V> vClass)
public static <K> void removeAll(Map<K,?> m, Set<K> s)
public static boolean isAllStrings(Map<?,?> m)
public static Map<String,String> toStringStringMap(Map<?,?> m)
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.