
com.kintone.client.model.app.field.Option Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kintone-java-client Show documentation
Show all versions of kintone-java-client Show documentation
API client library for Kintone REST APIs on Java.
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app.field;
/**
* Settings of an option of Checkbox, Drop-down, Multi-choice and Radio button field.
*/
public class Option {
/**
* The display name of the option.
*/
private String label;
/**
* The display order (ascending) of the option, when listed with the other options.
*/
private Long index;
@java.lang.SuppressWarnings("all")
public Option() {
}
/**
* The display name of the option.
*/
@java.lang.SuppressWarnings("all")
public String getLabel() {
return this.label;
}
/**
* The display order (ascending) of the option, when listed with the other options.
*/
@java.lang.SuppressWarnings("all")
public Long getIndex() {
return this.index;
}
/**
* The display name of the option.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Option setLabel(final String label) {
this.label = label;
return this;
}
/**
* The display order (ascending) of the option, when listed with the other options.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Option setIndex(final Long index) {
this.index = index;
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 Option)) return false;
final Option other = (Option) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$index = this.getIndex();
final java.lang.Object other$index = other.getIndex();
if (this$index == null ? other$index != null : !this$index.equals(other$index)) 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;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Option;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $index = this.getIndex();
result = result * PRIME + ($index == null ? 43 : $index.hashCode());
final java.lang.Object $label = this.getLabel();
result = result * PRIME + ($label == null ? 43 : $label.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Option(label=" + this.getLabel() + ", index=" + this.getIndex() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy