edu.stanford.protege.webprotege.crud.AutoValue_EntityCrudKitSettings Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.crud;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.crud.gen.GeneratedAnnotationsSettings;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EntityCrudKitSettings extends EntityCrudKitSettings {
private final EntityCrudKitPrefixSettings prefixSettings;
private final EntityCrudKitSuffixSettings suffixSettings;
private final GeneratedAnnotationsSettings generatedAnnotationsSettings;
AutoValue_EntityCrudKitSettings(
EntityCrudKitPrefixSettings prefixSettings,
EntityCrudKitSuffixSettings suffixSettings,
GeneratedAnnotationsSettings generatedAnnotationsSettings) {
if (prefixSettings == null) {
throw new NullPointerException("Null prefixSettings");
}
this.prefixSettings = prefixSettings;
if (suffixSettings == null) {
throw new NullPointerException("Null suffixSettings");
}
this.suffixSettings = suffixSettings;
if (generatedAnnotationsSettings == null) {
throw new NullPointerException("Null generatedAnnotationsSettings");
}
this.generatedAnnotationsSettings = generatedAnnotationsSettings;
}
@JsonProperty("prefixSettings")
@Override
public EntityCrudKitPrefixSettings getPrefixSettings() {
return prefixSettings;
}
@JsonProperty("suffixSettings")
@Override
public EntityCrudKitSuffixSettings getSuffixSettings() {
return suffixSettings;
}
@JsonProperty("generatedAnnotationsSettings")
@Nonnull
@Override
public GeneratedAnnotationsSettings getGeneratedAnnotationsSettings() {
return generatedAnnotationsSettings;
}
@Override
public String toString() {
return "EntityCrudKitSettings{"
+ "prefixSettings=" + prefixSettings + ", "
+ "suffixSettings=" + suffixSettings + ", "
+ "generatedAnnotationsSettings=" + generatedAnnotationsSettings
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EntityCrudKitSettings) {
EntityCrudKitSettings that = (EntityCrudKitSettings) o;
return this.prefixSettings.equals(that.getPrefixSettings())
&& this.suffixSettings.equals(that.getSuffixSettings())
&& this.generatedAnnotationsSettings.equals(that.getGeneratedAnnotationsSettings());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= prefixSettings.hashCode();
h$ *= 1000003;
h$ ^= suffixSettings.hashCode();
h$ *= 1000003;
h$ ^= generatedAnnotationsSettings.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy