com.aelitis.azureus.util
Class MapUtils

java.lang.Object
  extended by com.aelitis.azureus.util.MapUtils

public class MapUtils
extends Object

Author:
TuxPaper

Constructor Summary
MapUtils()
           
 
Method Summary
static boolean getMapBoolean(Map map, String key, boolean def)
           
static byte[] getMapByteArray(Map map, String key, byte[] def)
           
static int getMapInt(Map map, String key, int def)
           
static List getMapList(Map map, String key, List def)
           
static long getMapLong(Map map, String key, long def)
           
static Map getMapMap(Map map, String key, Map def)
           
static Object getMapObject(Map map, String key, Object def, Class cla)
           
static String getMapString(Map map, String key, String def)
           
static String[] getMapStringArray(Map map, String key, String[] def)
           
static String getString(Object obj)
           
static void setMapString(Map map, String key, String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapUtils

public MapUtils()
Method Detail

getMapInt

public static int getMapInt(Map map,
                            String key,
                            int def)

getMapLong

public static long getMapLong(Map map,
                              String key,
                              long def)

getMapString

public static String getMapString(Map map,
                                  String key,
                                  String def)

getMapStringArray

public static String[] getMapStringArray(Map map,
                                         String key,
                                         String[] def)

getString

public static String getString(Object obj)

setMapString

public static void setMapString(Map map,
                                String key,
                                String val)

getMapByteArray

public static byte[] getMapByteArray(Map map,
                                     String key,
                                     byte[] def)

getMapObject

public static Object getMapObject(Map map,
                                  String key,
                                  Object def,
                                  Class cla)

getMapBoolean

public static boolean getMapBoolean(Map map,
                                    String key,
                                    boolean def)

getMapList

public static List getMapList(Map map,
                              String key,
                              List def)

getMapMap

public static Map getMapMap(Map map,
                            String key,
                            Map def)