Code example for TreeMap

Methods: firstKey, get, size

0
     * @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) {
    		return String.format(THUMB_RESIZE_FORMAT, width, height, getSmallestImageUrl());
    	} 
    	 
    	return null; 
    } 
 
     
    /** 
     * Get the image URL for a given image size. 
     * @param size Size of image. 
     * @return URL to image or null if not available. 
     */ 
    public String getImageUrl(ImageSize size) {
    	if(null != mImages && mImages.containsKey(size))
    		return mImages.get(size);
    	 
    	return null; 
    } 
     
    /** 
     * Fetches the largest available image for the drink. 
     * @return Image url or null if no images are available. 
     */ 
    public String getLargestImageUrl() {
    	if(null != mImages && mImages.size() > 0)
    		return mImages.get(mImages.lastKey());
 
    	return null; 
    } 
 
    /** 
     * Fetches the smallest available image for the drink. 
     * @return Image url or null if no images are available. 
     */ 
    public String getSmallestImageUrl() {
    	if(null != mImages && mImages.size() > 0)
    		return mImages.get(mImages.firstKey());
    	 
    	return null; 
    } 
 
    public int getId() {