mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-23 07:50:09 -08:00
Make the promotion map protected and use classes.
This commit is contained in:
parent
8a79d0c2df
commit
4fd30030f9
|
@ -8,8 +8,8 @@ import java.util.function.Function;
|
|||
|
||||
public abstract class NumberImplementation {
|
||||
|
||||
protected Map<Class<? extends NumberInterface>, Function<NumberInterface, NumberInterface>> promotionPaths;
|
||||
private Class<? extends NumberInterface> implementation;
|
||||
private Map<String, Function<NumberInterface, NumberInterface>> promotionPaths;
|
||||
private int priority;
|
||||
|
||||
public NumberImplementation(Class<? extends NumberInterface> implementation, int priority){
|
||||
|
|
Loading…
Reference in New Issue
Block a user