1 package net.pterodactylus.sone.data.impl;
3 import static com.google.common.base.Preconditions.checkState;
5 import net.pterodactylus.sone.data.Client;
6 import net.pterodactylus.sone.database.SoneBuilder;
7 import net.pterodactylus.sone.freenet.wot.Identity;
9 import com.google.common.base.Preconditions;
10 import com.google.inject.internal.util.$Preconditions;
13 * Abstract {@link SoneBuilder} implementation.
15 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
17 public abstract class AbstractSoneBuilder implements SoneBuilder {
20 protected boolean local;
21 protected Client client;
24 public SoneBuilder by(String id) {
30 public SoneBuilder local() {
36 public SoneBuilder using(Client client) {
41 protected void validate() throws IllegalStateException {
42 checkState(id != null, "id must not be null");
43 checkState(client != null, "client must not be null");