@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ProvisionedFeaturePack other = (ProvisionedFeaturePack) obj; if (fpid == null) { if (other.fpid != null) return false; } else if (!fpid.equals(other.fpid)) return false; if (packages == null) { if (other.packages != null) return false; } else if (!packages.equals(other.packages)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; FeaturePackSpec other = (FeaturePackSpec) obj; if (defPackages == null) { if (other.defPackages != null) return false; } else if (!defPackages.equals(other.defPackages)) return false; if (fpid == null) { if (other.fpid != null) return false; } else if (!fpid.equals(other.fpid)) return false; return true; }
if (c.getLocation().getFPID().equals(fpid)) { config = c; break;
if(fpSpec.isPatch()) { F patchTarget = featurePacks.get(fpSpec.getPatchFor().getProducer()); if(patchTarget == null || !patchTarget.getFPID().equals(fpSpec.getPatchFor())) { throw new ProvisioningException(Errors.patchNotApplicable(fpid, fpSpec.getPatchFor()));
@SuppressWarnings("unchecked") public B removeFeaturePackDep(FeaturePackLocation fpl) throws ProvisioningException { fpl = resolveUniverseSpec(fpl); final ProducerSpec producer = fpl.getProducer(); final FeaturePackConfig fpDep = fpDeps.get(producer); if(fpDep == null) { throw new ProvisioningException(Errors.unknownFeaturePack(fpl.getFPID())); } if(!fpDep.getLocation().getFPID().equals(fpl.getFPID())) { throw new ProvisioningException(Errors.unknownFeaturePack(fpl.getFPID())); } if(fpDeps.size() == 1) { fpDeps = Collections.emptyMap(); } else { fpDeps = CollectionUtils.remove(fpDeps, producer); } updateOriginMappings(producer); return (B) this; }