Advertisement
Guest User

Untitled

a guest
Feb 1st, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. in the main class:
  2.  
  3.         Map<String, String> variables = new HashMap<String, String>();
  4.  
  5.         variables.put("fooBar", "23");
  6.         variables.put("foo2", "52");
  7.        
  8.         ..
  9.         ..
  10.         ..
  11.        
  12.          xl.init(funcLibs, variables)
  13.          
  14. in the "working" class:
  15.  
  16.         public class EvaluateInt<Integer> implements Evaluator {
  17.        
  18.         ...
  19.         ...
  20.  
  21.         private Map<String, String> variables;
  22.        
  23.         public void init(List funcLibs, Map variables) {
  24.         initialized = true;
  25.         this.funcLibs = funcLibs;
  26.         this.variables = variables;
  27.        
  28.         ...
  29.        
  30.        
  31.         public interface Evaluator<T extends Object> {
  32.        
  33.         ...
  34.        
  35.         public void init(List<FunctionLib<T>> funcLibs, Map<String, T> variables);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement