@Override public boolean equals(Object other) { if (!(other instanceof FeatureSpecInfo)) { return false; } FeatureSpecInfo ofs = (FeatureSpecInfo) other; return specId.equals(ofs.specId); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ResolvedFeatureId other = (ResolvedFeatureId) obj; if (params == null) { if (other.params != null) return false; } else if (!params.equals(other.params)) return false; if (specId == null) { if (other.specId != null) return false; } else if (!specId.equals(other.specId)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ProvisionedFeatureBuilder other = (ProvisionedFeatureBuilder) obj; if (configParams == null) { if (other.configParams != null) return false; } else if (!configParams.equals(other.configParams)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (specId == null) { if (other.specId != null) return false; } else if (!specId.equals(other.specId)) return false; return true; }
if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (resolvedDeps == null) {
if(orderReferencedSpec && specRef && !feature.spec.id.equals(refId.specId)) { final SpecFeatures targetSpecFeatures = specFeatures.get(refId.specId); if (targetSpecFeatures == null) {
if(orderReferencedSpec && specRef && !feature.spec.id.equals(refId.specId)) { final SpecFeatures targetSpecFeatures = specFeatures.get(refId.specId); if (targetSpecFeatures == null) {
while (i < originalWoIds.size() && !matchesOriginal) { final ProvisionedFeature original = originalWoIds.get(i++); if (!original.getSpecId().equals(feature.getSpecId())) { continue;
handler.startBatch(); if(!feature.spec.id.equals(lastHandledSpecId)) { if (lastHandledSpecId == null || !feature.spec.id.producer.equals(lastHandledSpecId.producer)) { handler.nextFeaturePack(feature.spec.id.producer.getLocation().getFPID());
@Override public void handle(ProvisionedConfigHandler handler) throws ProvisioningException { if (!hasFeatures()) { return; } handler.prepare(this); ResolvedSpecId lastHandledSpecId = null; for(ProvisionedFeature feature : features) { if(!feature.getSpecId().equals(lastHandledSpecId)) { if (lastHandledSpecId == null || !feature.getSpecId().getProducer().equals(lastHandledSpecId.getProducer())) { handler.nextFeaturePack(feature.getSpecId().getProducer().getLocation().getFPID()); } // TODO: complete spec isn't available here, but specId is enough for marshalling handler.nextSpec(new ResolvedFeatureSpec(feature.getSpecId(), null, FeatureSpec.builder().build())); lastHandledSpecId = feature.getSpecId(); } handler.nextFeature(feature); } handler.done(); }