1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 07:20:09 -08:00

Add a class that keeps track of the implementation information.

This commit is contained in:
Danila Fedorin 2017-08-03 20:50:53 -07:00
parent 44c52b412c
commit 3e10ea223f

View File

@ -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<? extends NumberInterface> implementation;
private Map<String, Function<NumberInterface, NumberInterface>> promotionPaths;
private int priority;
public abstract NumberInterface instanceForString(String string);
public abstract NumberInterface instanceForPi();
}