/** * Returns the total number of images for this recipe * * @return - the gallery size */ public int getGallerySize() { int size = 0; if (recipe != null) { size = recipe.getImageGallery().size(); } return size; }