+ /**
+ * Creates a new album with a random ID.
+ *
+ * @param sone
+ * The Sone this album belongs to
+ */
+ public Album(Sone sone) {
+ this(UUID.randomUUID().toString(), sone);
+ }
+
+ /**
+ * Creates a new album with the given ID.
+ *
+ * @param id
+ * The ID of the album
+ * @param sone
+ * The Sone this album belongs to
+ */
+ public Album(String id, Sone sone) {
+ Validation.begin().isNotNull("Album ID", id).isNotNull("Album Owner", sone).check();
+ this.id = id;
+ this.sone = sone;
+ }
+