2023-04-20 10:11:12 +02:00
|
|
|
package it.cavallium.datagen.plugin;
|
2022-02-20 02:56:51 +01:00
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Map;
|
2022-07-19 02:10:14 +02:00
|
|
|
import java.util.Objects;
|
2022-02-20 02:56:51 +01:00
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
public class InterfaceDataConfiguration {
|
|
|
|
|
|
|
|
public Set<String> extendInterfaces = new HashSet<>();
|
|
|
|
public Map<String, String> commonData = new HashMap<>();
|
|
|
|
public Map<String, String> commonGetters = new HashMap<>();
|
2022-07-19 02:10:14 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (this == o) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (o == null || getClass() != o.getClass()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
InterfaceDataConfiguration that = (InterfaceDataConfiguration) o;
|
|
|
|
return Objects.equals(extendInterfaces, that.extendInterfaces) && Objects.equals(commonData, that.commonData)
|
|
|
|
&& Objects.equals(commonGetters, that.commonGetters);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
2022-07-19 02:45:20 +02:00
|
|
|
int hash = 0;
|
|
|
|
hash += ConfigUtils.hashCode(extendInterfaces);
|
|
|
|
hash += ConfigUtils.hashCode(commonData);
|
|
|
|
hash += ConfigUtils.hashCode(commonGetters);
|
|
|
|
return hash;
|
2022-07-19 02:10:14 +02:00
|
|
|
}
|
2022-02-20 02:56:51 +01:00
|
|
|
}
|