com.gitee.cliveyuan.tools.bean.Captcha Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-tools Show documentation
Show all versions of java-tools Show documentation
Some commonly used methods in java
package com.gitee.cliveyuan.tools.bean;
import java.util.Objects;
/**
* 验证码
*
* @author clive
* Created on 2018/07/27
* @since 1.0
*/
public class Captcha {
private String captchaId;
private String captchaValue;
public Captcha() {
}
public Captcha(String captchaId, String captchaValue) {
this.captchaId = captchaId;
this.captchaValue = captchaValue;
}
public String getCaptchaId() {
return captchaId;
}
public void setCaptchaId(String captchaId) {
this.captchaId = captchaId;
}
public String getCaptchaValue() {
return captchaValue;
}
public void setCaptchaValue(String captchaValue) {
this.captchaValue = captchaValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Captcha captcha = (Captcha) o;
return Objects.equals(captchaId, captcha.captchaId) &&
Objects.equals(captchaValue, captcha.captchaValue);
}
@Override
public int hashCode() {
return Objects.hash(captchaId, captchaValue);
}
@Override
public String toString() {
return "Captcha{" +
"captchaId='" + captchaId + '\'' +
", captchaValue='" + captchaValue + '\'' +
'}';
}
}