1 package net.pterodactylus.sone.database.memory;
3 import net.pterodactylus.sone.data.Sone;
4 import net.pterodactylus.sone.data.impl.SoneImpl;
5 import net.pterodactylus.sone.data.impl.AbstractSoneBuilder;
6 import net.pterodactylus.sone.database.Database;
9 * Memory-based {@link AbstractSoneBuilder} implementation.
11 public class MemorySoneBuilder extends AbstractSoneBuilder {
13 private final Database database;
15 public MemorySoneBuilder(Database database) {
16 this.database = database;
20 public Sone build() throws IllegalStateException {
22 return new SoneImpl(database, identity, local);