com.distelli.persistence.AttrDescription Maven / Gradle / Ivy
// Generated by delombok at Mon Apr 29 09:42:55 PDT 2019
package com.distelli.persistence;
public class AttrDescription {
private String attrName;
private AttrType attrType;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
AttrDescription(final String attrName, final AttrType attrType) {
this.attrName = attrName;
this.attrType = attrType;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class AttrDescriptionBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String attrName;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private AttrType attrType;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
AttrDescriptionBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public AttrDescriptionBuilder attrName(final String attrName) {
this.attrName = attrName;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public AttrDescriptionBuilder attrType(final AttrType attrType) {
this.attrType = attrType;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public AttrDescription build() {
return new AttrDescription(attrName, attrType);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "AttrDescription.AttrDescriptionBuilder(attrName=" + this.attrName + ", attrType=" + this.attrType + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static AttrDescriptionBuilder builder() {
return new AttrDescriptionBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public AttrDescriptionBuilder toBuilder() {
return new AttrDescriptionBuilder().attrName(this.attrName).attrType(this.attrType);
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getAttrName() {
return this.attrName;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public AttrType getAttrType() {
return this.attrType;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setAttrName(final String attrName) {
this.attrName = attrName;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setAttrType(final AttrType attrType) {
this.attrType = attrType;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof AttrDescription)) return false;
final AttrDescription other = (AttrDescription) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$attrName = this.getAttrName();
final java.lang.Object other$attrName = other.getAttrName();
if (this$attrName == null ? other$attrName != null : !this$attrName.equals(other$attrName)) return false;
final java.lang.Object this$attrType = this.getAttrType();
final java.lang.Object other$attrType = other.getAttrType();
if (this$attrType == null ? other$attrType != null : !this$attrType.equals(other$attrType)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AttrDescription;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $attrName = this.getAttrName();
result = result * PRIME + ($attrName == null ? 43 : $attrName.hashCode());
final java.lang.Object $attrType = this.getAttrType();
result = result * PRIME + ($attrType == null ? 43 : $attrType.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "AttrDescription(attrName=" + this.getAttrName() + ", attrType=" + this.getAttrType() + ")";
}
}