1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-18 00:19:32 -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 8a79d0c2df
commit 4fd30030f9

View File

@ -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){