1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-11 17:45:20 +00:00

Add a Function abstract class and a Function database.

This commit is contained in:
2017-07-24 13:44:38 -07:00
parent 7fdae4285b
commit 8ed2c77fec
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package org.nwapw.abacus.number;
import java.util.HashMap;
public class FunctionDatabase {
private HashMap<String, Function> functions;
private void registerDefault(){
}
public FunctionDatabase(){
functions = new HashMap<>();
}
public Function getFunction(String name){
return functions.get(name);
}
}