private boolean isInstalledAsRoot(IInstallableUnit isInstalled) { for (IInstallableUnit installed : alreadyExistingRoots) { if (isInstalled.equals(installed)) return true; } return false; }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Update)) return false; if (toUpdate == null) return false; if (replacement == null) return false; Update other = (Update) obj; return toUpdate.equals(other.toUpdate) && replacement.equals(other.replacement); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Update)) return false; if (toUpdate == null) return false; if (replacement == null) return false; Update other = (Update) obj; return toUpdate.equals(other.toUpdate) && replacement.equals(other.replacement); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof AvailableUpdateElement)) return false; if (iu == null) return false; if (iuToBeUpdated == null) return false; AvailableUpdateElement other = (AvailableUpdateElement) obj; return iu.equals(other.getIU()) && iuToBeUpdated.equals(other.getIUToBeUpdated()); }
public void add(IInstallableUnit unit) { String key = unit.getId(); Object matching = units.get(key); if (matching == null) { units.put(key, unit); return; } // We already had something at this key position. It must be // preserved. if (matching.getClass().isArray()) { // Entry is an array. Add unique IInstallableUnit[] iuArr = (IInstallableUnit[]) matching; int idx = iuArr.length; while (--idx >= 0) if (iuArr[idx].equals(unit)) // This unit has already been added return; IInstallableUnit[] iuArrPlus = new IInstallableUnit[iuArr.length + 1]; System.arraycopy(iuArr, 0, iuArrPlus, 0, iuArr.length); iuArrPlus[iuArr.length] = unit; units.put(unit.getId(), iuArrPlus); } else { IInstallableUnit old = (IInstallableUnit) matching; if (!old.equals(unit)) units.put(key, new IInstallableUnit[] {old, unit}); } }
int idx = array.length; while (--idx >= 0) { if (unit.equals(array[idx])) { if (array.length == 2) {
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof InstalledIUElement)) return false; if (iu == null) return false; if (!iu.equals(((InstalledIUElement) obj).getIU())) return false; Object parent = getParent(this); Object objParent = ((InstalledIUElement) obj).getParent(obj); if (parent != null && objParent != null) return parent.equals(objParent); else if (parent == null && objParent == null) return true; return false; }
@Override protected boolean isApplicable(InstallableUnitOperand op) { return (op.first() != null && !op.first().equals(op.second())); }
@Override protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof AvailableIUElement)) return false; if (iu == null) return false; if (!iu.equals(((AvailableIUElement) obj).getIU())) return false; Object parent = getParent(this); Object objParent = ((AvailableIUElement) obj).getParent(obj); if (parent != null && objParent != null) return parent.equals(objParent); else if (parent == null && objParent == null) return true; return false; }
for ( IInstallableUnit reference : requirementReferences ) if ( !reference.equals( unit ) && !backtrace.contains( reference ) )
@Override protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
@Override protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
protected boolean isApplicable(InstallableUnitOperand op) { return (op.second() != null && !op.second().equals(op.first())); }
protected boolean isApplicable(InstallableUnitOperand op) { return (op.first() != null && !op.first().equals(op.second())); }
public boolean equals(Object a, Object b) { // We treat category elements specially because this // is one case where resolving down to an IU will lose identity // differences. (category IU's with the same name and version number cannot be treated the same). if (a instanceof CategoryElement || b instanceof CategoryElement) return a.equals(b); IInstallableUnit iu1 = getIU(a); IInstallableUnit iu2 = getIU(b); if (iu1 != null && iu2 != null) return iu1.equals(iu2); String p1 = getProfileId(a); String p2 = getProfileId(b); if (p1 != null && p2 != null) return p1.equals(p2); URI r1 = getRepositoryLocation(a); URI r2 = getRepositoryLocation(b); if (r1 != null && r2 != null) return r1.equals(r2); return a.equals(b); }
if (iuTo.equals(iuFrom)) { from.remove(iuFrom);