package com.qianwen.smartman.modules.mdc.dto;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
public class CountResult {
|
@ApiModelProperty("数量")
|
private Integer nums;
|
@ApiModelProperty("状态")
|
private Integer status;
|
|
|
public static class CountResultBuilder {
|
private Integer nums;
|
private Integer status;
|
|
CountResultBuilder() {
|
}
|
|
public CountResultBuilder nums(final Integer nums) {
|
this.nums = nums;
|
return this;
|
}
|
|
public CountResultBuilder status(final Integer status) {
|
this.status = status;
|
return this;
|
}
|
|
public CountResult build() {
|
return new CountResult(this.nums, this.status);
|
}
|
|
public String toString() {
|
return "CountResult.CountResultBuilder(nums=" + this.nums + ", status=" + this.status + ")";
|
}
|
}
|
|
public void setNums(final Integer nums) {
|
this.nums = nums;
|
}
|
|
public void setStatus(final Integer status) {
|
this.status = status;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CountResult) {
|
CountResult other = (CountResult) o;
|
if (other.canEqual(this)) {
|
Object this$nums = getNums();
|
Object other$nums = other.getNums();
|
if (this$nums == null) {
|
if (other$nums != null) {
|
return false;
|
}
|
} else if (!this$nums.equals(other$nums)) {
|
return false;
|
}
|
Object this$status = getStatus();
|
Object other$status = other.getStatus();
|
return this$status == null ? other$status == null : this$status.equals(other$status);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CountResult;
|
}
|
|
public int hashCode() {
|
Object $nums = getNums();
|
int result = (1 * 59) + ($nums == null ? 43 : $nums.hashCode());
|
Object $status = getStatus();
|
return (result * 59) + ($status == null ? 43 : $status.hashCode());
|
}
|
|
public String toString() {
|
return "CountResult(nums=" + getNums() + ", status=" + getStatus() + ")";
|
}
|
|
public static CountResultBuilder builder() {
|
return new CountResultBuilder();
|
}
|
|
public CountResult() {
|
}
|
|
public CountResult(final Integer nums, final Integer status) {
|
this.nums = nums;
|
this.status = status;
|
}
|
|
public Integer getNums() {
|
return this.nums;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
}
|