/** The description of this album. */
private String description;
+ /** The index of the album picture. */
+ private int albumImage = -1;
+
/**
* Creates a new album with a random ID.
*/
}
/**
+ * Returns the album image of this album, or {@code null} if no album image
+ * has been set.
+ *
+ * @return The image to show when this album is listed
+ */
+ public Image getAlbumImage() {
+ if (albumImage == -1) {
+ return null;
+ }
+ return images.get(albumImage);
+ }
+
+ /**
* Returns the parent album of this album.
*
* @return The parent album of this album, or {@code null} if this album