com.kintone.client.model.app.layout.SubtableLayout Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app.layout;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
/**
* A layout information corresponding to a Table.
*/
@JsonIgnoreProperties(value = "type", allowGetters = true)
public class SubtableLayout implements Layout {
/**
* The field code of the Table field.
*/
private String code;
/**
* A list of fields in the row.
*/
private List fields;
/**
* {@inheritDoc}
*/
@Override
public LayoutType getType() {
return LayoutType.SUBTABLE;
}
@java.lang.SuppressWarnings("all")
public SubtableLayout() {
}
/**
* The field code of the Table field.
*/
@java.lang.SuppressWarnings("all")
public String getCode() {
return this.code;
}
/**
* A list of fields in the row.
*/
@java.lang.SuppressWarnings("all")
public List getFields() {
return this.fields;
}
/**
* The field code of the Table field.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public SubtableLayout setCode(final String code) {
this.code = code;
return this;
}
/**
* A list of fields in the row.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public SubtableLayout setFields(final List fields) {
this.fields = fields;
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 SubtableLayout)) return false;
final SubtableLayout other = (SubtableLayout) o;
if (!other.canEqual((java.lang.Object) this)) 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$fields = this.getFields();
final java.lang.Object other$fields = other.getFields();
if (this$fields == null ? other$fields != null : !this$fields.equals(other$fields)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof SubtableLayout;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $code = this.getCode();
result = result * PRIME + ($code == null ? 43 : $code.hashCode());
final java.lang.Object $fields = this.getFields();
result = result * PRIME + ($fields == null ? 43 : $fields.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "SubtableLayout(code=" + this.getCode() + ", fields=" + this.getFields() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy