org.opendatadiscovery.adapter.contract.model.BinaryFieldStat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adapter-contract-server Show documentation
Show all versions of adapter-contract-server Show documentation
Adapter Server Contract defines OpenDataDiscovery APIs and models for Java pull adapters
The newest version!
package org.opendatadiscovery.adapter.contract.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import org.openapitools.jackson.nullable.JsonNullable;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* BinaryFieldStat
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2022-09-27T11:48:09.478558Z[Etc/UTC]")
public class BinaryFieldStat {
@JsonProperty("max_length")
private Integer maxLength;
@JsonProperty("avg_length")
private BigDecimal avgLength;
@JsonProperty("nulls_count")
private Long nullsCount;
@JsonProperty("unique_count")
private Long uniqueCount;
public BinaryFieldStat maxLength(Integer maxLength) {
this.maxLength = maxLength;
return this;
}
/**
* Get maxLength
* @return maxLength
*/
@ApiModelProperty(required = true, value = "")
@NotNull
public Integer getMaxLength() {
return maxLength;
}
public void setMaxLength(Integer maxLength) {
this.maxLength = maxLength;
}
public BinaryFieldStat avgLength(BigDecimal avgLength) {
this.avgLength = avgLength;
return this;
}
/**
* Get avgLength
* @return avgLength
*/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
public BigDecimal getAvgLength() {
return avgLength;
}
public void setAvgLength(BigDecimal avgLength) {
this.avgLength = avgLength;
}
public BinaryFieldStat nullsCount(Long nullsCount) {
this.nullsCount = nullsCount;
return this;
}
/**
* Get nullsCount
* @return nullsCount
*/
@ApiModelProperty(required = true, value = "")
@NotNull
public Long getNullsCount() {
return nullsCount;
}
public void setNullsCount(Long nullsCount) {
this.nullsCount = nullsCount;
}
public BinaryFieldStat uniqueCount(Long uniqueCount) {
this.uniqueCount = uniqueCount;
return this;
}
/**
* Get uniqueCount
* @return uniqueCount
*/
@ApiModelProperty(required = true, value = "")
@NotNull
public Long getUniqueCount() {
return uniqueCount;
}
public void setUniqueCount(Long uniqueCount) {
this.uniqueCount = uniqueCount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BinaryFieldStat binaryFieldStat = (BinaryFieldStat) o;
return Objects.equals(this.maxLength, binaryFieldStat.maxLength) &&
Objects.equals(this.avgLength, binaryFieldStat.avgLength) &&
Objects.equals(this.nullsCount, binaryFieldStat.nullsCount) &&
Objects.equals(this.uniqueCount, binaryFieldStat.uniqueCount);
}
@Override
public int hashCode() {
return Objects.hash(maxLength, avgLength, nullsCount, uniqueCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BinaryFieldStat {\n");
sb.append(" maxLength: ").append(toIndentedString(maxLength)).append("\n");
sb.append(" avgLength: ").append(toIndentedString(avgLength)).append("\n");
sb.append(" nullsCount: ").append(toIndentedString(nullsCount)).append("\n");
sb.append(" uniqueCount: ").append(toIndentedString(uniqueCount)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}