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. */
44 * Returns the nested albums.
46 * @return The nested albums
48 public List<Album> getNestedAlbums() {
49 return new ArrayList<Album>(albums);
53 * Returns the images in this album.
55 * @return The images in this album
57 public List<Image> getImages() {
58 return new ArrayList<Image>(images);
62 * Returns the name of this album.
64 * @return The name of this album
66 public String getName() {
71 * Sets the name of this album.
74 * The name of this album
77 public Album setName(String name) {