@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Construct other = (Construct) obj; if (contentDigest == null) { if (other.contentDigest != null) return false; } else if (!contentDigest.equals(other.contentDigest)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } public String toString() {
@Override public final boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; JavaId other = (JavaId) obj; if (type != other.type) return false; if (!this.getQualifiedName().equals(other.getQualifiedName())) return false; return true; }
/** * Returns all {@link JavaMethodId}s and {@link JavaConstructuctorId}s belonging to the given class. * @param _set * @param _context * @return */ public static Set<ConstructId> filterWithContext(Set<ConstructId> _set, JavaId _context) { final Set<ConstructId> set = new HashSet<ConstructId>(); JavaId jid = null; for(ConstructId c: _set) { if(c instanceof JavaMethodId) { if( ((JavaMethodId)c).getDefinitionContext().equals(_context) ) set.add(c); } else if(c instanceof JavaConstructorId) { if( ((JavaConstructorId)c).getDefinitionContext().equals(_context) ) set.add(c); } } return set; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ConstructUsage other = (ConstructUsage) obj; if (appContext == null) { if (other.appContext != null) return false; } else if (!appContext.equals(other.appContext)) return false; if (c == null) { if (other.c != null) return false; } else if (!c.equals(other.c)) return false; if (resourceURL == null) { if (other.resourceURL != null) return false; } else if (!resourceURL.equals(other.resourceURL)) return false; return true; } }
if(tocheck.getSharedType()==ConstructType.CLAS) { for(ConstructChange in : ch_array) { if(tocheck.equals(in.getConstruct().getId().getDefinitionContext())) { toDelete = false; break;