projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add login page.
[demoscenemusic.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
demoscenemusic
/
data
/
DefaultArtist.java
diff --git
a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
index
3dc0108
..
7f99a9c
100644
(file)
--- a/
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
+++ b/
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
@@
-20,21
+20,37
@@
package net.pterodactylus.demoscenemusic.data;
import java.util.Collection;
/**
import java.util.Collection;
/**
- *
TODO
+ *
Default implementation for an artist data container.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class DefaultArtist extends DefaultBase implements Artist {
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class DefaultArtist extends DefaultBase implements Artist {
+ /**
+ * Creates a new artist data container.
+ *
+ * @param id
+ * The ID of the artist
+ */
public DefaultArtist(String id) {
super(id);
}
public DefaultArtist(String id) {
super(id);
}
+ //
+ // ARTIST METHODS
+ //
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getName() {
return getValue("name", String.class).get();
}
@Override
public String getName() {
return getValue("name", String.class).get();
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public Artist setName(String name) {
getValue("name", String.class).set(name);
@Override
public Artist setName(String name) {
getValue("name", String.class).set(name);
@@
-59,11
+75,18
@@
public class DefaultArtist extends DefaultBase implements Artist {
return this;
}
return this;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
@Override
+ @SuppressWarnings({ "unchecked" })
public Collection<Track> getTracks() {
return getValue("tracks", Collection.class).get();
}
public Collection<Track> getTracks() {
return getValue("tracks", Collection.class).get();
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public Artist setTracks(Collection<Track> tracks) {
getValue("tracks", Collection.class).set(tracks);
@Override
public Artist setTracks(Collection<Track> tracks) {
getValue("tracks", Collection.class).set(tracks);