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:
parent
542f062b5e
commit
3f2c4ae249
|
@ -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();
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user