FileDocCategorySizeDatePackage
MyMap.javaAPI DocMyID3 for Android5848Wed Oct 08 18:20:40 BST 2008org.cmc.music.util

MyMap

public class MyMap extends Hashtable

Fields Summary
public static final long
serialVersionUID
Constructors Summary
public MyMap()


	 
	
	
public MyMap(Map other)

		super(other);
	
Methods Summary
private java.lang.Objectactual_get(java.lang.Object key, java.lang.Object def)

		Object result = super.get(key);
		return (result == null) ? (def) : (result);

	
public java.lang.Stringget(java.lang.Object key, java.lang.String def)

		return (String) actual_get(key, def);
	
public java.lang.Booleanget(java.lang.Object key, java.lang.Boolean def)

		return (Boolean) actual_get(key, def);
	
public java.lang.Integerget(java.lang.Object key, int def)

		return (Integer) actual_get(key, new Integer(def));
	
public java.lang.Objectget(java.lang.Object key, java.lang.Object def)

		return actual_get(key, def);

	
public java.lang.Integerget(java.lang.Object key, java.lang.Integer def)

		return (Integer) actual_get(key, def);
	
public java.lang.BooleangetBoolean(java.lang.Object key)

		return getBoolean(key, null);

	
public java.lang.BooleangetBoolean(java.lang.Object key, java.lang.Boolean def)

		try
		{
			return (Boolean) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public byte[]getByteArray(java.lang.Object key)

		return getByteArray(key, null);
	
public byte[]getByteArray(java.lang.Object key, byte[] def)

		try
		{
			return (byte[]) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.util.DategetDate(java.lang.Object key)

		return getDate(key, null);
	
public java.util.DategetDate(java.lang.Object key, java.util.Date def)

		try
		{
			return (Date) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.lang.DoublegetDouble(java.lang.Object key)

		return getDouble(key, null);
	
public java.lang.DoublegetDouble(java.lang.Object key, java.lang.Double def)

		try
		{
			return (Double) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.io.FilegetFile(java.lang.Object key)

		return getFile(key, null);
	
public java.io.FilegetFile(java.lang.Object key, java.io.File def)

		try
		{
			return (File) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.lang.FloatgetFloat(java.lang.Object key)

		return getFloat(key, null);
	
public java.lang.FloatgetFloat(java.lang.Object key, java.lang.Float def)

		try
		{
			return (Float) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.lang.IntegergetInteger(java.lang.Object key)

		return getInteger(key, null);
	
public java.lang.IntegergetInteger(java.lang.Object key, java.lang.Integer def)

		try
		{
			return (Integer) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.util.MapgetMap(java.lang.Object key)

		return getMap(key, null);
	
public java.util.MapgetMap(java.lang.Object key, java.util.Map def)

		try
		{
			return (Map) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.lang.NumbergetNumber(java.lang.Object key)

		return getNumber(key, null);
	
public java.lang.NumbergetNumber(java.lang.Object key, java.lang.Number def)

		try
		{
			return (Number) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public final java.lang.ObjectgetRequired(java.lang.Object key)

		Object result = actual_get(key, null);

		if (result == null)
			throw new Exception("missing: " + key);

		return result;
	
public final java.lang.BooleangetRequiredBoolean(java.lang.Object key)

		Boolean result = getBoolean(key);

		if (result == null)
			throw new Exception("missing: " + key);

		return result;
	
public final java.lang.NumbergetRequiredNumber(java.lang.Object key)

		Number result = getNumber(key);

		if (result == null)
			throw new Exception("missing: " + key);

		return result;
	
public final java.lang.StringgetRequiredString(java.lang.Object key)

		String result = getString(key);

		if (result == null)
			throw new Exception("missing: " + key);

		return result;
	
public java.lang.StringgetString(java.lang.Object key)

		return getString(key, null);
	
public java.lang.StringgetString(java.lang.Object key, java.lang.String def)

		try
		{
			return (String) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public java.util.VectorgetVector(java.lang.Object key)

		return getVector(key, null);
	
public java.util.VectorgetVector(java.lang.Object key, java.util.Vector def)

		try
		{
			return (Vector) actual_get(key, def);
		}
		catch (ClassCastException e)
		{

			return null;
		}
	
public final java.lang.Objectput(java.lang.Object key, long value)

		return put(key, new Long(value));
	
public final java.lang.Objectput(java.lang.Object key, int value)

		return put(key, new Integer(value));
	
public final java.lang.Objectput(java.lang.Object key, boolean value)

		return put(key, new Boolean(value));
	
public final java.lang.Objectput(java.lang.Object key, char value)

		return put(key, new Character(value));
	
public final java.lang.Objectput(java.lang.Object key, double value)

		return put(key, new Double(value));
	
public final java.lang.Objectput(java.lang.Object key, float value)

		return put(key, new Float(value));
	
public final java.lang.Objectput(java.lang.Object key, byte value)

		return put(key, new Byte(value));
	
public final java.lang.Objectput(java.lang.Object key, short value)

		return put(key, new Short(value));
	
public final java.lang.Objectput(java.lang.Object key, java.lang.Object value)

		if ((key != null) && (value != null))
			return super.put(key, value);

		super.remove(key);
		return null;
		//		return super.get(key);