Code example for TreeMap

Methods: firstKey, get, size

0
    /** 
     * 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() { 
        return mId;
    } 
 
    public ArrayList<Volume> getVolumes() {
        return mVolumes;
    } 
     
    public String getName() {
        return mName;