2 * Sone - Album.java - Copyright © 2011 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.sone.data;
20 import java.util.ArrayList;
21 import java.util.List;
24 * Container for images that can also contain nested {@link Album}s.
26 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
31 private final List<Album> albums = new ArrayList<Album>();
33 /** The images in this album. */
34 private final List<Image> images = new ArrayList<Image>();
36 /** The name of this album. */
39 /** The description of this album. */
40 private String description;
47 * Returns the nested albums.
49 * @return The nested albums
51 public List<Album> getNestedAlbums() {
52 return new ArrayList<Album>(albums);
56 * Returns the images in this album.
58 * @return The images in this album
60 public List<Image> getImages() {
61 return new ArrayList<Image>(images);
65 * Returns the name of this album.
67 * @return The name of this album
69 public String getName() {
74 * Sets the name of this album.
77 * The name of this album
80 public Album setName(String name) {
86 * Returns the description of this album.
88 * @return The description of this album
90 public String getDescription() {
95 * Sets the description of this album.
98 * The description of this album
101 public Album setDescription(String description) {
102 this.description = description;