From 3f2c4ae2493c4f0bf8017d0241281c58fce8bdb9 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 3 Aug 2017 20:50:53 -0700 Subject: [PATCH] Add a class that keeps track of the implementation information. --- .../abacus/plugin/NumberImplementation.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java diff --git a/src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java b/src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java new file mode 100644 index 0000000..c57fbc6 --- /dev/null +++ b/src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java @@ -0,0 +1,17 @@ +package org.nwapw.abacus.plugin; + +import org.nwapw.abacus.number.NumberInterface; + +import java.util.Map; +import java.util.function.Function; + +public abstract class NumberImplementation { + + private Class implementation; + private Map> promotionPaths; + private int priority; + + public abstract NumberInterface instanceForString(String string); + public abstract NumberInterface instanceForPi(); + +}