All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kintone.client.model.Group Maven / Gradle / Ivy

// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model;

import java.beans.ConstructorProperties;

/**
 * An object representing a Group value.
 */
public final class Group {
    /**
     * The name of group.
     */
    private final String name;
    /**
     * The code of group.
     */
    private final String code;

    /**
     * Constructor to create a group value used for editing Group Selection fields. When adding or
     * updating values of Group Selection field, the "name" parameter will be ignored. This
     * constructor only sets the "code" field while leaves the "name" field empty.
     *
     * @param code the code of the group.
     */
    public Group(String code) {
        this("", code);
    }

    @ConstructorProperties({"name", "code"})
    public Group(String name, String code) {
        this.name = name;
        this.code = code;
    }

    /**
     * The name of group.
     */
    @java.lang.SuppressWarnings("all")
    public String getName() {
        return this.name;
    }

    /**
     * The code of group.
     */
    @java.lang.SuppressWarnings("all")
    public String getCode() {
        return this.code;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof Group)) return false;
        final Group other = (Group) o;
        final java.lang.Object this$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) 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;
        return true;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final java.lang.Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "Group(name=" + this.getName() + ", code=" + this.getCode() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy