3 import IR.TypeDescriptor;
5 public class SESEEffectsKey {
8 private TypeDescriptor td;
11 public SESEEffectsKey(String fd, TypeDescriptor td, Integer hrnId) {
17 public String getFieldDescriptor() {
21 public TypeDescriptor getTypeDescriptor() {
25 public Integer getHRNId() {
29 public String toString() {
30 return "(" + td + ")" + fd + "#" + hrnId;
33 public int hashCode() {
38 hash = hash * 31 + fd.hashCode();
42 hash += td.getSymbol().hashCode();
46 hash += hrnId.hashCode();
53 public boolean equals(Object o) {
59 if (!(o instanceof SESEEffectsKey)) {
63 SESEEffectsKey in = (SESEEffectsKey) o;
65 if (fd.equals(in.getFieldDescriptor())
66 && td.getSymbol().equals(in.getTypeDescriptor().getSymbol())
67 && hrnId.equals(in.getHRNId())) {