1 19 package edu.umd.cs.findbugs.ba.ca; 20 21 public class Call { 22 private final String className; 23 private final String methodName; 24 private final String methodSig; 25 26 public Call(String className, String methodName, String methodSig) { 27 this.className = className; 28 this.methodName= methodName; 29 this.methodSig = methodSig; 30 } 31 32 public String getClassName() { 33 return className; 34 } 35 36 public String getMethodName() { 37 return methodName; 38 } 39 40 public String getMethodSig() { 41 return methodSig; 42 } 43 44 @Override 46 public boolean equals(Object obj) { 47 if (obj == null || obj.getClass() != this.getClass()) 48 return false; 49 Call other = (Call) obj; 50 return this.className.equals(other.className) 51 && this.methodName.equals(other.methodName) 52 && this.methodSig.equals(other.methodSig); 53 } 54 55 @Override 57 public int hashCode() { 58 return className.hashCode() + methodName.hashCode() + methodSig.hashCode(); 59 } 60 } 61 | Popular Tags |