From 14ac9c67f4ccc24e227d1703edeb3cb958203abd Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 16 Sep 2017 00:18:43 -0700 Subject: [PATCH] Implement the comparable interface. --- .../java/org/nwapw/abacus/number/NumberInterface.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/src/main/java/org/nwapw/abacus/number/NumberInterface.java b/core/src/main/java/org/nwapw/abacus/number/NumberInterface.java index 8727425..e37c4fb 100755 --- a/core/src/main/java/org/nwapw/abacus/number/NumberInterface.java +++ b/core/src/main/java/org/nwapw/abacus/number/NumberInterface.java @@ -5,7 +5,7 @@ import org.nwapw.abacus.exception.ComputationInterruptedException; /** * An interface used to represent a number. */ -public abstract class NumberInterface { +public abstract class NumberInterface implements Comparable { /** * Check if the thread was interrupted and @@ -158,14 +158,6 @@ public abstract class NumberInterface { return intPowInternal(exponent); } - /** - * Compares this number to another. - * - * @param number the number to compare to. - * @return same as Integer.compare(); - */ - public abstract int compareTo(NumberInterface number); - /** * Same as Math.signum(). *