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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user