mirror of
https://github.com/DanilaFe/abacus
synced 2024-07-02 07:21:24 -07:00
18 lines
486 B
Java
18 lines
486 B
Java
|
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();
|
||
|
|
||
|
}
|