1
0
mirror of https://github.com/DanilaFe/abacus synced 2025-01-09 15:54:13 -08:00

Make the promotion map protected and use classes.

This commit is contained in:
Danila Fedorin 2017-08-03 21:27:53 -07:00
parent e6cc08043e
commit b680215f57

View File

@ -8,8 +8,8 @@ import java.util.function.Function;
public abstract class NumberImplementation { public abstract class NumberImplementation {
protected Map<Class<? extends NumberInterface>, Function<NumberInterface, NumberInterface>> promotionPaths;
private Class<? extends NumberInterface> implementation; private Class<? extends NumberInterface> implementation;
private Map<String, Function<NumberInterface, NumberInterface>> promotionPaths;
private int priority; private int priority;
public NumberImplementation(Class<? extends NumberInterface> implementation, int priority){ public NumberImplementation(Class<? extends NumberInterface> implementation, int priority){