From 8317c9bd20f0d1ce47c57cfd6708ba886652279a Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Tue, 31 Mar 2015 02:40:51 +1100 Subject: [PATCH] Allow HLL objects to be serialized. --- src/main/java/net/agkn/hll/HLL.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/agkn/hll/HLL.java b/src/main/java/net/agkn/hll/HLL.java index cdfd3ad..3b930a5 100644 --- a/src/main/java/net/agkn/hll/HLL.java +++ b/src/main/java/net/agkn/hll/HLL.java @@ -16,6 +16,7 @@ * limitations under the License. */ +import java.io.Serializable; import java.util.Arrays; import it.unimi.dsi.fastutil.ints.Int2ByteOpenHashMap; @@ -59,7 +60,7 @@ * * @author timon */ -public class HLL implements Cloneable { +public class HLL implements Cloneable, Serializable { // minimum and maximum values for the log-base-2 of the number of registers // in the HLL public static final int MINIMUM_LOG2M_PARAM = 4;