com.kintone.client.model.record.SubtableFieldValue Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.record;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* A value object for a Table.
*/
public final class SubtableFieldValue implements FieldValue {
/**
* The rows of the Table.
*/
private final List rows;
public SubtableFieldValue(List rows) {
this.rows = Collections.unmodifiableList(rows);
}
public SubtableFieldValue(TableRow... rows) {
this(Arrays.asList(rows));
}
/**
* {@inheritDoc}
*/
@Override
public FieldType getType() {
return FieldType.SUBTABLE;
}
/**
* The rows of the Table.
*/
@java.lang.SuppressWarnings("all")
public List getRows() {
return this.rows;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof SubtableFieldValue)) return false;
final SubtableFieldValue other = (SubtableFieldValue) o;
final java.lang.Object this$rows = this.getRows();
final java.lang.Object other$rows = other.getRows();
if (this$rows == null ? other$rows != null : !this$rows.equals(other$rows)) return false;
return true;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $rows = this.getRows();
result = result * PRIME + ($rows == null ? 43 : $rows.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "SubtableFieldValue(rows=" + this.getRows() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy