1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 07:20:09 -08:00

Add a map to promoting priorities.

This commit is contained in:
Danila Fedorin 2017-07-24 14:26:09 -07:00
parent d0421d93ca
commit 7bab3773dc

View File

@ -1,7 +1,14 @@
package org.nwapw.abacus.number;
import java.util.HashMap;
public abstract class Function {
private static final HashMap<Class<? extends Number>, Integer> priorityMap =
new HashMap<Class<? extends Number>, Integer>() {{
put(NaiveNumber.class, 0);
}};
protected abstract boolean matchesParams(Number[] params);
protected abstract Number applyInternal(Number[] params);