
com.kintone.client.model.app.layout.FieldLayout Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app.layout;
import com.kintone.client.model.record.FieldType;
/**
* An object contains layout information of a form field.
*/
public class FieldLayout {
/**
* The type of field.
*/
private FieldType type;
/**
* The field code.
*/
private String code;
/**
* The text set in the Label field.
*/
private String label;
/**
* The element ID of the Space field.
*/
private String elementId;
/**
* An object with data of the field's size.
*/
private FieldSize size;
@java.lang.SuppressWarnings("all")
public FieldLayout() {
}
/**
* The type of field.
*/
@java.lang.SuppressWarnings("all")
public FieldType getType() {
return this.type;
}
/**
* The field code.
*/
@java.lang.SuppressWarnings("all")
public String getCode() {
return this.code;
}
/**
* The text set in the Label field.
*/
@java.lang.SuppressWarnings("all")
public String getLabel() {
return this.label;
}
/**
* The element ID of the Space field.
*/
@java.lang.SuppressWarnings("all")
public String getElementId() {
return this.elementId;
}
/**
* An object with data of the field's size.
*/
@java.lang.SuppressWarnings("all")
public FieldSize getSize() {
return this.size;
}
/**
* The type of field.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldLayout setType(final FieldType type) {
this.type = type;
return this;
}
/**
* The field code.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldLayout setCode(final String code) {
this.code = code;
return this;
}
/**
* The text set in the Label field.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldLayout setLabel(final String label) {
this.label = label;
return this;
}
/**
* The element ID of the Space field.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldLayout setElementId(final String elementId) {
this.elementId = elementId;
return this;
}
/**
* An object with data of the field's size.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldLayout setSize(final FieldSize size) {
this.size = size;
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof FieldLayout)) return false;
final FieldLayout other = (FieldLayout) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
final java.lang.Object this$code = this.getCode();
final java.lang.Object other$code = other.getCode();
if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
final java.lang.Object this$label = this.getLabel();
final java.lang.Object other$label = other.getLabel();
if (this$label == null ? other$label != null : !this$label.equals(other$label)) return false;
final java.lang.Object this$elementId = this.getElementId();
final java.lang.Object other$elementId = other.getElementId();
if (this$elementId == null ? other$elementId != null : !this$elementId.equals(other$elementId)) return false;
final java.lang.Object this$size = this.getSize();
final java.lang.Object other$size = other.getSize();
if (this$size == null ? other$size != null : !this$size.equals(other$size)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof FieldLayout;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final java.lang.Object $code = this.getCode();
result = result * PRIME + ($code == null ? 43 : $code.hashCode());
final java.lang.Object $label = this.getLabel();
result = result * PRIME + ($label == null ? 43 : $label.hashCode());
final java.lang.Object $elementId = this.getElementId();
result = result * PRIME + ($elementId == null ? 43 : $elementId.hashCode());
final java.lang.Object $size = this.getSize();
result = result * PRIME + ($size == null ? 43 : $size.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "FieldLayout(type=" + this.getType() + ", code=" + this.getCode() + ", label=" + this.getLabel() + ", elementId=" + this.getElementId() + ", size=" + this.getSize() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy