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

42 lines
1.1 KiB
Java

package it.cavallium.data.generator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
public class VersionConfiguration {
public DetailsConfiguration details;
public Map<String, Set<String>> superTypes;
public Map<String, CustomTypesConfiguration> customTypes;
public Map<String, ClassConfiguration> classes;
public List<VersionTransformation> transformations;
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VersionConfiguration that = (VersionConfiguration) o;
return Objects.equals(details, that.details) && Objects.equals(superTypes, that.superTypes) && Objects.equals(
customTypes,
that.customTypes
) && Objects.equals(classes, that.classes) && Objects.equals(transformations, that.transformations);
}
@Override
public int hashCode() {
int hash = 0;
hash += ConfigUtils.hashCode(details);
hash += ConfigUtils.hashCode(superTypes);
hash += ConfigUtils.hashCode(customTypes);
hash += ConfigUtils.hashCode(classes);
hash += ConfigUtils.hashCode(transformations);
return hash;
}
}