projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add page that lists all parties.
[demoscenemusic.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
demoscenemusic
/
data
/
Party.java
diff --git
a/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java
b/src/main/java/net/pterodactylus/demoscenemusic/data/Party.java
index
dbf1b8e
..
301e9c8
100644
(file)
--- a/
src/main/java/net/pterodactylus/demoscenemusic/data/Party.java
+++ b/
src/main/java/net/pterodactylus/demoscenemusic/data/Party.java
@@
-17,26
+17,45
@@
package net.pterodactylus.demoscenemusic.data;
package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
+
/**
/**
- *
TODO
+ *
Data interface for parties.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public
class Party extends Abstract
Base {
+public
interface Party extends
Base {
- private String name;
+ /**
+ * Returns the name of this party.
+ *
+ * @return The name of this party
+ */
+ public String getName();
- public Party(String id) {
- super(id);
- }
+ /**
+ * Sets the name of this party.
+ *
+ * @param name
+ * The name of this party
+ * @return This party
+ */
+ public Party setName(String name);
- public String name() {
- return name;
- }
+ /**
+ * Returns all tracks that were released at this party.
+ *
+ * @return All tracks that were released at this party
+ */
+ public Collection<Track> getReleases();
- public Party name(String name) {
- this.name = name;
- return this;
- }
+ /**
+ * Sets all tracks that were released at this party.
+ *
+ * @param tracks
+ * All tracks that were released at this party
+ * @return This party
+ */
+ public Party setReleases(Collection<Track> tracks);
}
}