+ public int hashCode() {
+ int h = returnType.hashCode() ^ name.hashCode() ^ getDeclaringClass().hashCode();
+ for(int i=0;i<argTypes.length;i++) h ^= argTypes[i].hashCode();
+ return h;
+ }
+ public boolean equals(Object o_) {
+ if(o_ == this) return true;
+ if(!(o_ instanceof Method)) return false;
+ Method o = (Method) o_;
+ if(!(o.getDeclaringClass() == getDeclaringClass() && o.returnType == returnType && o.name.equals(name))) return false;
+ if(o.argTypes.length != argTypes.length) return false;
+ for(int i=0;i<argTypes.length;i++)
+ if(o.argTypes[i] != argTypes[i]) return false;
+ return true;
+ }