Code example for TreeMap

Methods: put, remove

0
     * @param size Size of the image. 
     * @param url Image URL. 
     */ 
    public void setImageUrl(ImageSize size, String url) {
    	if(null == mImages)
    		mImages = new TreeMap<ImageSize, String>();
    	 
    	if(null != url && url.length() > 0)
    		mImages.put(size, url);
        else 
        	mImages.remove(size);
    } 
     
    /** 
     * Get the thumbnail URL for this article. 
     * @param width Thumbnail width in pixels. 
     * @param height Thumbnail height in pixels. 
     * @return Thumbnail URL or null if not available. 
     */ 
    public String getThumbnailUrl(int width, int height) {
    	if(null != mImages && mImages.size() > 0) {