/** * Cache a variable (for efficiency). * Useful for Variables that are used a lot, and not too large, like coordinate variables. * * @param varName name of variable to cache. must exist. * @param dtype datatype of variable */ void addCacheVariable(String varName, DataType dtype) { if (findCacheVariable(varName) != null) return; // no duplicates cacheList.add(new CacheVar(varName, dtype)); }
/** * Cache a variable (for efficiency). * Useful for Variables that are used a lot, and not too large, like coordinate variables. * * @param varName name of variable to cache. must exist. * @param dtype datatype of variable */ void addCacheVariable(String varName, DataType dtype) { if (findCacheVariable(varName) != null) return; // no duplicates cacheList.add(new CacheVar(varName, dtype)); }
/** * Cache a variable (for efficiency). * Useful for Variables that are used a lot, and not too large, like coordinate variables. * * @param varName name of variable to cache. must exist. * @param dtype datatype of variable */ void addCacheVariable(String varName, DataType dtype) { if (findCacheVariable(varName) != null) return; // no duplicates cacheList.add(new CacheVar(varName, dtype)); }