You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			85 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			85 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Java
		
	
package net.minecraft.server.management;
 | 
						|
 | 
						|
import java.util.Collection;
 | 
						|
import java.util.Iterator;
 | 
						|
import java.util.LinkedHashMap;
 | 
						|
import java.util.Map;
 | 
						|
import java.util.Set;
 | 
						|
import java.util.Map.Entry;
 | 
						|
 | 
						|
public class LowerStringMap implements Map
 | 
						|
{
 | 
						|
    private final Map internalMap = new LinkedHashMap();
 | 
						|
    private static final String __OBFID = "CL_00001488";
 | 
						|
 | 
						|
    public int size()
 | 
						|
    {
 | 
						|
        return this.internalMap.size();
 | 
						|
    }
 | 
						|
 | 
						|
    public boolean isEmpty()
 | 
						|
    {
 | 
						|
        return this.internalMap.isEmpty();
 | 
						|
    }
 | 
						|
 | 
						|
    public boolean containsKey(Object p_containsKey_1_)
 | 
						|
    {
 | 
						|
        return this.internalMap.containsKey(p_containsKey_1_.toString().toLowerCase());
 | 
						|
    }
 | 
						|
 | 
						|
    public boolean containsValue(Object p_containsValue_1_)
 | 
						|
    {
 | 
						|
        return this.internalMap.containsKey(p_containsValue_1_);
 | 
						|
    }
 | 
						|
 | 
						|
    public Object get(Object p_get_1_)
 | 
						|
    {
 | 
						|
        return this.internalMap.get(p_get_1_.toString().toLowerCase());
 | 
						|
    }
 | 
						|
 | 
						|
    public Object put(String p_put_1_, Object p_put_2_)
 | 
						|
    {
 | 
						|
        return this.internalMap.put(p_put_1_.toLowerCase(), p_put_2_);
 | 
						|
    }
 | 
						|
 | 
						|
    public Object remove(Object p_remove_1_)
 | 
						|
    {
 | 
						|
        return this.internalMap.remove(p_remove_1_.toString().toLowerCase());
 | 
						|
    }
 | 
						|
 | 
						|
    public void putAll(Map p_putAll_1_)
 | 
						|
    {
 | 
						|
        Iterator iterator = p_putAll_1_.entrySet().iterator();
 | 
						|
 | 
						|
        while (iterator.hasNext())
 | 
						|
        {
 | 
						|
            Entry entry = (Entry)iterator.next();
 | 
						|
            this.put((String)entry.getKey(), entry.getValue());
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    public void clear()
 | 
						|
    {
 | 
						|
        this.internalMap.clear();
 | 
						|
    }
 | 
						|
 | 
						|
    public Set keySet()
 | 
						|
    {
 | 
						|
        return this.internalMap.keySet();
 | 
						|
    }
 | 
						|
 | 
						|
    public Collection values()
 | 
						|
    {
 | 
						|
        return this.internalMap.values();
 | 
						|
    }
 | 
						|
 | 
						|
    public Set entrySet()
 | 
						|
    {
 | 
						|
        return this.internalMap.entrySet();
 | 
						|
    }
 | 
						|
 | 
						|
    public Object put(Object p_put_1_, Object p_put_2_)
 | 
						|
    {
 | 
						|
        return this.put((String)p_put_1_, p_put_2_);
 | 
						|
    }
 | 
						|
} |