X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FAlbum.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FAlbum.java;h=df514d44313e1c9dc64e3b8aafc8c44dd07d77e0;hp=26da9b7c7751d1c672827e015c89ce06fb5f2340;hb=84e3f241029a4a0a63069a0a793b4f09408d3ca6;hpb=f0c0d175ae5058661d3af7cc99d0c188616a4d8f diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index 26da9b7..df514d4 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -121,28 +121,6 @@ public interface Album extends Identified, Fingerprintable { List getAlbums(); /** - * Moves the given album up in this album’s albums. If the album is already the - * first album, nothing happens. - * - * @param album - * The album to move up - * @return The album that the given album swapped the place with, or - * null if the album did not change its place - */ - Album moveAlbumUp(Album album); - - /** - * Moves the given album down in this album’s albums. If the album is already - * the last album, nothing happens. - * - * @param album - * The album to move down - * @return The album that the given album swapped the place with, or - * null if the album did not change its place - */ - Album moveAlbumDown(Album album); - - /** * Returns the images in this album. * * @return The images in this album @@ -229,6 +207,10 @@ public interface Album extends Identified, Fingerprintable { */ Modifier modify() throws IllegalStateException; + void moveUp(); + + void moveDown(); + void remove() throws IllegalStateException; /**