1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-26 00:25:20 +00:00

Add attempt to find the number implementation from the class.

This commit is contained in:
2017-08-03 22:16:08 -07:00
parent b680215f57
commit 34ae4b42c6
2 changed files with 33 additions and 0 deletions

View File

@@ -18,6 +18,18 @@ public abstract class NumberImplementation {
promotionPaths = new HashMap<>();
}
public final Map<Class<? extends NumberInterface>, Function<NumberInterface, NumberInterface>> getPromotionPaths(){
return promotionPaths;
}
public final Class<? extends NumberInterface> getImplementation(){
return implementation;
}
public final int getPriority(){
return priority;
}
public abstract NumberInterface instanceForString(String string);
public abstract NumberInterface instanceForPi();