import static com.google.common.base.Preconditions.checkState;
+import net.pterodactylus.sone.data.Client;
import net.pterodactylus.sone.database.SoneBuilder;
import net.pterodactylus.sone.freenet.wot.Identity;
protected String id;
protected boolean local;
+ protected Client client;
@Override
public SoneBuilder by(String id) {
return this;
}
+ @Override
+ public SoneBuilder using(Client client) {
+ this.client = client;
+ return this;
+ }
+
protected void validate() throws IllegalStateException {
checkState(id != null, "id must not be null");
+ checkState(client != null, "client must not be null");
}
}