data-generator/src/main/java/it/cavallium/data/generator/SourcesGeneratorConfiguration.java
2022-07-19 02:45:53 +02:00

35 lines
1008 B
Java

package it.cavallium.data.generator;
import java.util.Map;
import java.util.Objects;
public class SourcesGeneratorConfiguration {
public String currentVersion;
public Map<String, InterfaceDataConfiguration> interfacesData;
public Map<String, VersionConfiguration> versions;
public SourcesGeneratorConfigurationRefs refs;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SourcesGeneratorConfiguration that = (SourcesGeneratorConfiguration) o;
return Objects.equals(currentVersion, that.currentVersion) && Objects.equals(interfacesData, that.interfacesData)
&& Objects.equals(versions, that.versions) && Objects.equals(refs, that.refs);
}
@Override
public int hashCode() {
int hash = 0;
hash += ConfigUtils.hashCode(currentVersion);
hash += ConfigUtils.hashCode(interfacesData);
hash += ConfigUtils.hashCode(versions);
hash += ConfigUtils.hashCode(refs);
return hash;
}
}