Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -60,6 +61,28 @@ public Set<ConfigurationStepDependency> getDependencies() {
return dependencies;
}

@Override
public String toString() {
return "ConfigurationStep[name=" + name + "]";
}

@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ConfigurationStep that = (ConfigurationStep) o;
return Objects.equals(name, that.name);
}

@Override
public int hashCode() {
return Objects.hashCode(name);
}

public static final class Builder {
private String name;
private String description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.nifi.components.connector;

import java.util.Objects;
import java.util.Set;

public final class ConnectorPropertyDependency {
Expand All @@ -40,4 +41,26 @@ public String getPropertyName() {
public Set<String> getDependentValues() {
return dependentValues;
}

@Override
public String toString() {
return "ConnectorPropertyDependency[propertyName=" + propertyName + ", dependentValues=" + dependentValues + "]";
}

@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ConnectorPropertyDependency that = (ConnectorPropertyDependency) o;
return Objects.equals(propertyName, that.propertyName) && Objects.equals(dependentValues, that.dependentValues);
}

@Override
public int hashCode() {
return Objects.hash(propertyName, dependentValues);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;

public class ParameterValue {
private final String name;
Expand Down Expand Up @@ -54,12 +55,24 @@ public List<Asset> getAssets() {

@Override
public String toString() {
return "ParameterValue{" +
"name=" + name +
", value=" + (sensitive ? "****" : value) +
", sensitive=" + sensitive +
", assets=" + assets +
'}';
return "ParameterValue[name=" + name + ", value=" + (sensitive ? "****" : value) + ", sensitive=" + sensitive + ", assets=" + assets + "]";
}

@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ParameterValue that = (ParameterValue) o;
return Objects.equals(name, that.name);
}

@Override
public int hashCode() {
return Objects.hashCode(name);
}

public static class Builder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ public Map<String, VersionedConnectorValueReference> getProperties() {
public void setProperties(final Map<String, VersionedConnectorValueReference> properties) {
this.properties = properties;
}

@Override
public String toString() {
return "VersionedConfigurationStep[name=" + name + "]";
}
}