2 * DemosceneMusic - Track.java - Copyright © 2012 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.demoscenemusic.data;
20 import java.util.Collection;
21 import java.util.List;
24 * Data interface for tracks.
26 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
28 public interface Track extends Base {
31 * Returns the name of this track.
33 * @return The name of this track
35 public String getName();
38 * Sets the name of this track.
41 * The name of this track
44 public Track setName(String name);
47 * Returns all artists involved in this track.
49 * @return All involved artists in preferred order
51 public List<Artist> getArtists();
54 * Sets all artists involved in this track.
57 * All involved artists in preferred order
60 public Track setArtists(List<Artist> artists);
63 * Returns all styles of this track.
65 * @return All styles of this track
67 public Collection<Style> getStyles();
70 * Sets all styles of this track.
73 * All styles of this track
76 public Track setStyles(Collection<? extends Style> styles);