⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 functionloader.java

📁 JAVA 数学程序库 提供常规的数值计算程序包
💻 JAVA
字号:
package jmathlib.core.functions;

import java.util.*;


/** Base class used to find and load a function.
 */
public abstract class FunctionLoader
{    
    private boolean isSystemLoader;
    private HashMap functionCache = new HashMap();
    
    protected FunctionLoader(boolean _isSystemLoader) {
        isSystemLoader = _isSystemLoader;
    }
    
    public FunctionLoader() {this(false);}
    
    
    protected void cacheFunction(Function f) {
      functionCache.put(f.name, f);
    }
    
    protected Function getCachedFunction(String name) {
      return (Function)functionCache.get(name);
    }
    
    protected Iterator getCachedFunctionIterator() {
        return functionCache.values().iterator();
    }
    
    protected void clearCachedFunction(String name) {
        functionCache.remove(name);
    }
    
    public void clearCache() {
      functionCache.clear();
    }
    
    public boolean isSystemLoader() {
      return isSystemLoader;
    }
    
    /**find unknown class/m-file in directory structure
       @param fileName = the file to look for*/
    public abstract Function findFunction(String functionName);
    
    public abstract void setPFileCaching(boolean caching);
    
    public abstract boolean getPFileCaching();
    
    public abstract void checkAndRehashTimeStamps();
    

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -