Added setAll method to Templator
This commit is contained in:
parent
82889b1550
commit
ed7f0eae9a
1 changed files with 4 additions and 4 deletions
|
|
@ -34,10 +34,7 @@ import java.lang.reflect.Array;
|
|||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
|
@ -119,6 +116,9 @@ public class Templator {
|
|||
public void set(String key, Object data) {
|
||||
this.data.put(key, data);
|
||||
}
|
||||
public void setAll(Map<String,Object> source) {
|
||||
this.data.putAll(source);
|
||||
}
|
||||
public Object get(String key) {
|
||||
return this.data.get(key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue