How to get a unique method identifier?
问题 I'm needing to get a unique method identifier to use as a key on a HashMap. I'm trying to do something using stacktrace and reflection and user the method signature. But the problem is I didn´t find a way to retrive the complete method signature (to avoid methods overload). Edited I would like that somethink like this works: public class Class1 { HashMap<String, Object> hm; public Class1() { hm = new HashMap<String, Object>(); } public Object method() { if (!containsKey()) { Object value; ...