This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private <T> Map<T,T> filp(Map<T,T> m) { | |
| Set<T> keys = m.keySet(); | |
| Map<T,T> m2 = new HashMap<T,T>(); | |
| for (T key : keys) { | |
| T value = m.get(key); | |
| m2.put(value, key); | |
| } | |
| return m2; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.github.mustachejava.DefaultMustacheFactory; | |
| import com.github.mustachejava.Mustache; | |
| import com.github.mustachejava.MustacheFactory; | |
| import com.github.mustachejava.reflect.MissingWrapper; | |
| import com.github.mustachejava.reflect.ReflectionObjectHandler; | |
| import com.github.mustachejava.util.Wrapper; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.io.StringReader; |