FileDocCategorySizeDatePackage
SimpleMap.javaAPI DocMyID3 for Android2164Wed Oct 08 18:20:34 BST 2008org.cmc.music.util

SimpleMap

public class SimpleMap extends Object implements Map

Fields Summary
private final Map
map
private boolean
verbose_discarded
Constructors Summary
public SimpleMap()


	 
	
	
public SimpleMap(Map other)

		map.putAll(other);
	
Methods Summary
public voidclear()

		map.clear();
	
public booleancontainsKey(java.lang.Object key)

		if (key == null)
			return false;
		return map.containsKey(simplifyKey(key));
	
public booleancontainsValue(java.lang.Object value)

		if (value == null)
			return false;
		return map.containsValue(value);
	
public java.util.SetentrySet()

		return map.entrySet();
	
public java.lang.Objectget(java.lang.Object key)

		if (key == null)
		{
			return null;
		}
		return map.get(simplifyKey(key));
	
public booleanisEmpty()

		return map.isEmpty();
	
public java.util.SetkeySet()

		return map.keySet();
	
public java.lang.Objectput(java.lang.Object key, java.lang.Object value)

		if (key == null)
		{
			return null;
		}
		if (value == null)
		{
			map.remove(key);
			return null;
		}
		return map.put(simplifyKey(key), value);
	
public voidputAll(java.util.Map t)

		Vector entries = new Vector(t.entrySet());
		for (int i = 0; i < entries.size(); i++)
		{
			Entry entry = (Entry) entries.get(i);
			put(entry.getKey(), entry.getValue());
		}
	
public java.lang.Objectremove(java.lang.Object key)

		if (key == null)
		{
			return null;
		}
		return map.remove(simplifyKey(key));
	
public voidsetVerboseDiscarded()


	  
	
		verbose_discarded = true;
	
private java.lang.ObjectsimplifyKey(java.lang.Object key)

		if (key == null)
			return null;
		if (!(key instanceof String))
			return key;
		return ((String) key).toLowerCase();
	
public intsize()

		return map.size();
	
public java.util.Collectionvalues()

		return map.values();