From c29e3880fec2291dccb4387df8dcc91c53618a0c Mon Sep 17 00:00:00 2001 From: Dave Date: Sun, 21 Dec 2014 17:18:22 +0200 Subject: [PATCH] Changed size() for NoHashSphere from int to long --- src/nodash/core/spheres/NoHashSphereDefault.java | 2 +- src/nodash/core/spheres/NoHashSphereInterface.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodash/core/spheres/NoHashSphereDefault.java b/src/nodash/core/spheres/NoHashSphereDefault.java index 2470298..71c27a7 100644 --- a/src/nodash/core/spheres/NoHashSphereDefault.java +++ b/src/nodash/core/spheres/NoHashSphereDefault.java @@ -98,7 +98,7 @@ public final class NoHashSphereDefault implements NoHashSphereInterface { return this.database.contains(hash); } - public synchronized int size() { + public synchronized long size() { return this.database.size(); } } diff --git a/src/nodash/core/spheres/NoHashSphereInterface.java b/src/nodash/core/spheres/NoHashSphereInterface.java index 145cbaa..a41725f 100644 --- a/src/nodash/core/spheres/NoHashSphereInterface.java +++ b/src/nodash/core/spheres/NoHashSphereInterface.java @@ -11,5 +11,5 @@ public interface NoHashSphereInterface { public void insertHash(String hash) throws IOException; public void removeHash(String hash) throws IOException; public boolean checkHash(String hash); - public int size(); + public long size(); }