1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-18 00:19:32 -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 542f062b5e
commit 3f2c4ae249

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();
}