package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
/**
* Default implementation of a party data container.
*
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ @SuppressWarnings("unchecked")
+ public Collection<Track> getReleases() {
+ return getValue("releases", Collection.class).get();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Party setReleases(Collection<Track> tracks) {
+ getValue("releases", Collection.class).set(tracks);
+ return this;
+ }
+
}
package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
+
/**
* Data interface for parties.
*
*/
public Party setName(String name);
+ /**
+ * Returns all tracks that were released at this party.
+ *
+ * @return All tracks that were released at this party
+ */
+ public Collection<Track> getReleases();
+
+ /**
+ * 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);
+
}