Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class MapUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.MapUtil
Direct Known Subclasses:
MapUtil

public class MapUtil
extends Object


Constructor Summary
MapUtil()
           
 
Method Summary
static
<K,V> void
copy(Map<K,V> master, Map<? super K,? super V> copy)
           
static boolean getBoolean(Map<String,?> map, String key)
           
static boolean getBoolean(Map<String,?> map, String key, boolean defaultValue)
           
static double getDouble(Map<String,?> map, String key)
           
static double getDouble(Map<String,?> map, String key, double defaultValue)
           
static int getInteger(Map<String,?> map, String key)
           
static int getInteger(Map<String,?> map, String key, int defaultValue)
           
static long getLong(Map<Long,Long> map, long key)
           
static long getLong(Map<Long,Long> map, long key, long defaultValue)
           
static long getLong(Map<String,?> map, String key)
           
static long getLong(Map<String,?> map, String key, long defaultValue)
           
static short getShort(Map<String,?> map, String key)
           
static short getShort(Map<String,?> map, String key, short defaultValue)
           
static String getString(Map<String,?> map, String key)
           
static String getString(Map<String,?> map, String key, String defaultValue)
           
static
<K,V> void
merge(Map<K,V> master, Map<? super K,? super V> copy)
           
static
<T> LinkedHashMap<String,T>
toLinkedHashMap(String[] params)
           
static
<T> LinkedHashMap<String,T>
toLinkedHashMap(String[] params, String delimiter)
           
static String toString(Map<?,?> map)
           
static String toString(Map<?,?> map, String hideIncludesRegex, String hideExcludesRegex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapUtil

public MapUtil()
Method Detail

copy

public static <K,V> void copy(Map<K,V> master,
                              Map<? super K,? super V> copy)

getBoolean

public static boolean getBoolean(Map<String,?> map,
                                 String key)

getBoolean

public static boolean getBoolean(Map<String,?> map,
                                 String key,
                                 boolean defaultValue)

getDouble

public static double getDouble(Map<String,?> map,
                               String key)

getDouble

public static double getDouble(Map<String,?> map,
                               String key,
                               double defaultValue)

getInteger

public static int getInteger(Map<String,?> map,
                             String key)

getInteger

public static int getInteger(Map<String,?> map,
                             String key,
                             int defaultValue)

getLong

public static long getLong(Map<Long,Long> map,
                           long key)

getLong

public static long getLong(Map<Long,Long> map,
                           long key,
                           long defaultValue)

getLong

public static long getLong(Map<String,?> map,
                           String key)

getLong

public static long getLong(Map<String,?> map,
                           String key,
                           long defaultValue)

getShort

public static short getShort(Map<String,?> map,
                             String key)

getShort

public static short getShort(Map<String,?> map,
                             String key,
                             short defaultValue)

getString

public static String getString(Map<String,?> map,
                               String key)

getString

public static String getString(Map<String,?> map,
                               String key,
                               String defaultValue)

merge

public static <K,V> void merge(Map<K,V> master,
                               Map<? super K,? super V> copy)

toLinkedHashMap

public static <T> LinkedHashMap<String,T> toLinkedHashMap(String[] params)

toLinkedHashMap

public static <T> LinkedHashMap<String,T> toLinkedHashMap(String[] params,
                                                          String delimiter)

toString

public static String toString(Map<?,?> map)

toString

public static String toString(Map<?,?> map,
                              String hideIncludesRegex,
                              String hideExcludesRegex)

Liferay 6.1.2-ce-ga3