package com.qianwen.core.sequence.properties; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @ConfigurationProperties(prefix = "blade.xsequence.redis") @Component public class SequenceRedisProperties extends BaseSequenceProperties { private String ip; private Integer port; private String auth; public void setIp(final String ip) { this.ip = ip; } public void setPort(final Integer port) { this.port = port; } public void setAuth(final String auth) { this.auth = auth; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof SequenceRedisProperties) { SequenceRedisProperties other = (SequenceRedisProperties) o; if (other.canEqual(this)) { Object this$port = getPort(); Object other$port = other.getPort(); if (this$port == null) { if (other$port != null) { return false; } } else if (!this$port.equals(other$port)) { return false; } Object this$ip = getIp(); Object other$ip = other.getIp(); if (this$ip == null) { if (other$ip != null) { return false; } } else if (!this$ip.equals(other$ip)) { return false; } Object this$auth = getAuth(); Object other$auth = other.getAuth(); return this$auth == null ? other$auth == null : this$auth.equals(other$auth); } return false; } return false; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties protected boolean canEqual(final Object other) { return other instanceof SequenceRedisProperties; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public int hashCode() { Object $port = getPort(); int result = (1 * 59) + ($port == null ? 43 : $port.hashCode()); Object $ip = getIp(); int result2 = (result * 59) + ($ip == null ? 43 : $ip.hashCode()); Object $auth = getAuth(); return (result2 * 59) + ($auth == null ? 43 : $auth.hashCode()); } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public String toString() { return "SequenceRedisProperties(ip=" + getIp() + ", port=" + getPort() + ", auth=" + getAuth() + ")"; } public String getIp() { return this.ip; } public Integer getPort() { return this.port; } public String getAuth() { return this.auth; } }