Code example for TreeMap

Methods: get, put

0
            throw new NullPointerException("clazz == null"); 
        } 
 
        throwIfPrepared(); 
 
        if (classDefs.get(type) != null) { 
            throw new IllegalArgumentException("already added: " + type); 
        } 
 
        classDefs.put(type, clazz); 
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    protected void orderItems() { 
        int sz = classDefs.size(); 
        int idx = 0; 
 
        orderedDefs = new ArrayList<ClassDefItem>(sz); 
 
        /*