1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-11 01:35:18 +00:00

Switch all uses of *List, *Map to just List and Map.

This commit is contained in:
2017-07-27 18:19:12 -07:00
parent bc23b8dbda
commit d9df565a42
8 changed files with 27 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import org.nwapw.abacus.function.Function;
import org.nwapw.abacus.function.Operator;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
@@ -18,11 +19,11 @@ public abstract class Plugin {
/**
* A hash map of functions mapped to their string names.
*/
private HashMap<String, Function> functions;
private Map<String, Function> functions;
/**
* A hash map of operators mapped to their string names.
*/
private HashMap<String, Operator> operators;
private Map<String, Operator> operators;
/**
* The plugin manager in which to search for functions
* not inside this package,

View File

@@ -15,29 +15,29 @@ public class PluginManager {
/**
* A list of loaded plugins.
*/
private ArrayList<Plugin> plugins;
private List<Plugin> plugins;
/**
* List of functions that have been cached,
* that is, found in a plugin and returned.
*/
private HashMap<String, Function> cachedFunctions;
private Map<String, Function> cachedFunctions;
/**
* List of operators tha have been cached,
* that is, found in a plugin and returned.
*/
private HashMap<String, Operator> cachedOperators;
private Map<String, Operator> cachedOperators;
/**
* List of all functions loaded by the plugins.
*/
private HashSet<String> allFunctions;
private Set<String> allFunctions;
/**
* List of all operators loaded by the plugins.
*/
private HashSet<String> allOperators;
private Set<String> allOperators;
/**
* The list of plugin listeners attached to this instance.
*/
private HashSet<PluginListener> listeners;
private Set<PluginListener> listeners;
/**
* Creates a new plugin manager.
@@ -155,7 +155,7 @@ public class PluginManager {
* Gets all the functions loaded by the Plugin Manager.
* @return the set of all functions that were loaded.
*/
public HashSet<String> getAllFunctions() {
public Set<String> getAllFunctions() {
return allFunctions;
}
@@ -163,7 +163,7 @@ public class PluginManager {
* Gets all the operators loaded by the Plugin Manager.
* @return the set of all operators that were loaded.
*/
public HashSet<String> getAllOperators() {
public Set<String> getAllOperators() {
return allOperators;
}