X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2Fmemory%2FMemoryPost.java;h=f5c4597b16e3186639ddf5e3d4f9353d921cad0c;hb=b10dc3573e2bf5c053d62c85b7ce19f9488d6a3c;hp=22fa7e6be5edcd2b2914b3d9f3fad3628a1fab56;hpb=6f019de1d4d9742981d851ac3c9097cca8bff58e;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java b/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java index 22fa7e6..f5c4597 100644 --- a/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java +++ b/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java @@ -17,8 +17,6 @@ package net.pterodactylus.sone.database.memory; -import java.util.UUID; - import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.database.SoneProvider; @@ -39,8 +37,8 @@ class MemoryPost implements Post { /** The Sone provider. */ private final SoneProvider soneProvider; - /** The GUID of the post. */ - private final UUID id; + /** The ID of the post. */ + private final String id; /** The ID of the owning Sone. */ private final String soneId; @@ -75,7 +73,7 @@ class MemoryPost implements Post { public MemoryPost(MemoryDatabase postDatabase, SoneProvider soneProvider, String id, String soneId, String recipientId, long time, String text) { this.postDatabase = postDatabase; this.soneProvider = soneProvider; - this.id = UUID.fromString(id); + this.id = id; this.soneId = soneId; this.recipientId = recipientId; this.time = time; @@ -91,7 +89,12 @@ class MemoryPost implements Post { */ @Override public String getId() { - return id.toString(); + return id; + } + + @Override + public boolean isLoaded() { + return true; } /**