com.github.thake.avro4k.maven.RenamedClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avro4k-maven-plugin Show documentation
Show all versions of avro4k-maven-plugin Show documentation
Maven plugin for Avro to Avro4k code generation
package com.github.thake.avro4k.maven;
import java.util.Objects;
public class RenamedClass {
private String regex;
private String replacement;
public String getRegex() {
return regex;
}
public void setRegex(String regex) {
this.regex = regex;
}
public String getReplacement() {
return replacement;
}
public void setReplacement(String replacement) {
this.replacement = replacement;
}
@Override public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
RenamedClass that = (RenamedClass) o;
return Objects.equals(regex, that.regex) && Objects.equals(replacement, that.replacement);
}
@Override public int hashCode() {
return Objects.hash(regex, replacement);
}
}