Advertisement
Guest User

Untitled

a guest
Oct 16th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.28 KB | None | 0 0
  1. //konstruktor
  2. SomeClass(LinkedHashMap variables = null) {
  3.     if (variables == null) {
  4.         return;
  5.     }
  6.     variables.each {           
  7.         this[it.key] = it.value;
  8.     }        
  9. }
  10.    
  11. public static getSomeClass(LinkedHashMap variables) {
  12.     return new SomeClass(variables);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement