projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🔀 Merge “refactoring/no-negative-identity-filter”
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
database
/
memory
/
MemorySoneBuilder.java
diff --git
a/src/main/java/net/pterodactylus/sone/database/memory/MemorySoneBuilder.java
b/src/main/java/net/pterodactylus/sone/database/memory/MemorySoneBuilder.java
index
8778fb5
..
14997dd
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/database/memory/MemorySoneBuilder.java
+++ b/
src/main/java/net/pterodactylus/sone/database/memory/MemorySoneBuilder.java
@@
-1,20
+1,25
@@
package net.pterodactylus.sone.database.memory;
import net.pterodactylus.sone.data.Sone;
package net.pterodactylus.sone.database.memory;
import net.pterodactylus.sone.data.Sone;
-import net.pterodactylus.sone.data.SoneImpl;
+import net.pterodactylus.sone.data.
impl.
SoneImpl;
import net.pterodactylus.sone.data.impl.AbstractSoneBuilder;
import net.pterodactylus.sone.data.impl.AbstractSoneBuilder;
+import net.pterodactylus.sone.database.Database;
/**
* Memory-based {@link AbstractSoneBuilder} implementation.
/**
* Memory-based {@link AbstractSoneBuilder} implementation.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class MemorySoneBuilder extends AbstractSoneBuilder {
*/
public class MemorySoneBuilder extends AbstractSoneBuilder {
+ private final Database database;
+
+ public MemorySoneBuilder(Database database) {
+ this.database = database;
+ }
+
@Override
public Sone build() throws IllegalStateException {
validate();
@Override
public Sone build() throws IllegalStateException {
validate();
- return new SoneImpl(identity, local);
+ return new SoneImpl(
database,
identity, local);
}
}
}
}