projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store artist of a track in the attributes.
[demoscenemusic.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
demoscenemusic
/
data
/
AbstractTrack.java
diff --git
a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java
b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java
index
9e721df
..
7c19f8c
100644
(file)
--- a/
src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java
+++ b/
src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java
@@
-39,8
+39,13
@@
public abstract class AbstractTrack extends AbstractBase implements Track {
return this;
}
return this;
}
- public abstract Artist artist();
+ public Artist artist() {
+ return value("artist", Artist.class).get();
+ }
- public abstract Track artist(Artist artist);
+ public Track artist(Artist artist) {
+ value("artist", Artist.class).set(artist);
+ return this;
+ }
}
}