X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSone.java;h=4a73470982eccfb9deabf61f553e5d1e48584cd0;hb=85150e66e27637f10b526db49bbcd8a9f3ba7124;hp=ba5ef68d896d6dfcd6757214ffc7cb9fa1aa1923;hpb=985f25a5434ba6ba57cbafc347cbc49e67359d3f;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index ba5ef68..4a73470 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -33,7 +33,7 @@ import freenet.keys.FreenetURI; public class Sone { /** A GUID for this Sone. */ - private final UUID id = UUID.randomUUID(); + private final UUID id; /** The name of this Sone. */ private final String name; @@ -51,18 +51,22 @@ public class Sone { /** * Creates a new Sone. * + * @param id + * The ID of this Sone * @param name * The name of the Sone * @param requestUri * The request URI of the Sone */ - public Sone(String name, FreenetURI requestUri) { - this(name, requestUri, null); + public Sone(UUID id, String name, FreenetURI requestUri) { + this(id, name, requestUri, null); } /** * Creates a new Sone. * + * @param id + * The ID of this Sone * @param name * The name of the Sone * @param requestUri @@ -70,7 +74,8 @@ public class Sone { * @param insertUri * The insert URI of the Sone */ - public Sone(String name, FreenetURI requestUri, FreenetURI insertUri) { + public Sone(UUID id, String name, FreenetURI requestUri, FreenetURI insertUri) { + this.id = id; this.name = name; this.requestUri = requestUri; this.insertUri = insertUri;