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

com.kintone.client.model.record.ModifierFieldValue Maven / Gradle / Ivy

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

import com.kintone.client.model.User;

/**
 * A value object for a Modifier field.
 */
public final class ModifierFieldValue implements FieldValue {
    /**
     * The user who updated the record.
     */
    private final User value;

    /**
     * {@inheritDoc}
     */
    @Override
    public FieldType getType() {
        return FieldType.MODIFIER;
    }

    @java.beans.ConstructorProperties({"value"})
    @java.lang.SuppressWarnings("all")
    public ModifierFieldValue(final User value) {
        this.value = value;
    }

    /**
     * The user who updated the record.
     */
    @java.lang.SuppressWarnings("all")
    public User getValue() {
        return this.value;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof ModifierFieldValue)) return false;
        final ModifierFieldValue other = (ModifierFieldValue) o;
        final java.lang.Object this$value = this.getValue();
        final java.lang.Object other$value = other.getValue();
        if (this$value == null ? other$value != null : !this$value.equals(other$value)) 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 $value = this.getValue();
        result = result * PRIME + ($value == null ? 43 : $value.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "ModifierFieldValue(value=" + this.getValue() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy