@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TieredSFCIndexStrategy other = (TieredSFCIndexStrategy) obj; if (!Arrays.equals(baseDefinitions, other.baseDefinitions)) { return false; } if (maxEstimatedDuplicateIdsPerDimension != other.maxEstimatedDuplicateIdsPerDimension) { return false; } if (orderedSfcIndexToTierId == null) { if (other.orderedSfcIndexToTierId != null) { return false; } } else if (!orderedSfcIndexToTierId.equals(other.orderedSfcIndexToTierId)) { return false; } if (!Arrays.equals(orderedSfcs, other.orderedSfcs)) { return false; } return true; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ComponentDescriptor) { ComponentDescriptor that = (ComponentDescriptor) o; return (this.kind.equals(that.kind())) && (this.annotation.equals(that.annotation())) && (this.typeElement.equals(that.typeElement())) && (this.dependencies.equals(that.dependencies())) && (this.modules.equals(that.modules())) && (this.dependenciesByDependencyMethod.equals(that.dependenciesByDependencyMethod())) && (this.scopes.equals(that.scopes())) && (this.childComponentsDeclaredByModules.equals(that.childComponentsDeclaredByModules())) && (this.childComponentsDeclaredByFactoryMethods.equals(that.childComponentsDeclaredByFactoryMethods())) && (this.childComponentsDeclaredByBuilderEntryPoints.equals(that.childComponentsDeclaredByBuilderEntryPoints())) && (this.componentMethods.equals(that.componentMethods())) && (this.creatorDescriptor.equals(that.creatorDescriptor())); } return false; }