import java.util.List;
import javax.annotation.Nonnull;
-import net.pterodactylus.sone.database.AlbumBuilder;
+import net.pterodactylus.sone.database.AlbumBuilderFactory;
import net.pterodactylus.sone.database.ImageBuilder;
import com.google.common.base.Function;
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public interface Album extends Identified, Fingerprintable {
+public interface Album extends Identified, Fingerprintable, AlbumBuilderFactory {
/** Compares two {@link Album}s by {@link #getTitle()}. */
Comparator<Album> TITLE_COMPARATOR = new Comparator<Album>() {
*/
String getDescription();
- AlbumBuilder newAlbumBuilder() throws IllegalStateException;
-
ImageBuilder newImageBuilder() throws IllegalStateException;
/**
import net.pterodactylus.sone.core.Options;
import net.pterodactylus.sone.database.AlbumBuilder;
+import net.pterodactylus.sone.database.AlbumBuilderFactory;
import net.pterodactylus.sone.freenet.wot.Identity;
import net.pterodactylus.sone.freenet.wot.OwnIdentity;
import net.pterodactylus.sone.template.SoneAccessor;
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
+public interface Sone extends Identified, Fingerprintable, AlbumBuilderFactory, Comparable<Sone> {
/**
* Enumeration for the possible states of a {@link Sone}.
/* TODO - remove this method again, maybe add an option provider */
void setOptions(Options options);
- AlbumBuilder newAlbumBuilder();
-
}