FileDocCategorySizeDatePackage
MapUtils.javaAPI DocAzureus 3.0.3.41775Mon Jun 04 17:50:20 BST 2007com.aelitis.azureus.util

MapUtils

public class MapUtils extends Object
author
TuxPaper
created
Jun 1, 2007

(Omit source code)

Fields Summary
Constructors Summary
Methods Summary
public static booleangetMapBoolean(java.util.Map map, java.lang.String key, boolean def)

		try {
			return ((Boolean) map.get(key)).booleanValue();
		} catch (Exception e) {
			return def;
		}
	
public static intgetMapInt(java.util.Map map, java.lang.String key, int def)

		try {
			return ((Number) map.get(key)).intValue();
		} catch (Exception e) {
			return def;
		}
	
public static java.lang.ObjectgetMapObject(java.util.Map map, java.lang.String key, java.lang.Object def, java.lang.Class cla)

		try {
			Object o = map.get(key);
			if (cla.isInstance(o)) {
				return o;
			} else {
				return def;
			}
		} catch (Exception t) {
			return def;
		}
	
public static java.lang.StringgetMapString(java.util.Map map, java.lang.String key, java.lang.String def)

		try {
			return (String) map.get(key);
		} catch (Exception t) {
			return def;
		}