Code example for TreeMap

Methods: putremove

     * @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);
     * 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) {
Contextual code suggestions in your IDE  Get Codota for Java