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

io.github.humbleui.skija.shaper.LanguageRun Maven / Gradle / Ivy

// Generated by delombok at Wed Sep 14 01:50:49 UTC 2022
package io.github.humbleui.skija.shaper;

import lombok.*;
import org.jetbrains.annotations.*;

public class LanguageRun {
    @ApiStatus.Internal
    public final int _end;
    /**
     * Should be BCP-47, c locale names may also work.
     */
    @ApiStatus.Internal
    public final String _language;

    @java.lang.SuppressWarnings("all")
    public LanguageRun(final int end, final String language) {
        this._end = end;
        this._language = language;
    }

    @java.lang.SuppressWarnings("all")
    public int getEnd() {
        return this._end;
    }

    /**
     * Should be BCP-47, c locale names may also work.
     */
    @java.lang.SuppressWarnings("all")
    public String getLanguage() {
        return this._language;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof LanguageRun)) return false;
        final LanguageRun other = (LanguageRun) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getEnd() != other.getEnd()) return false;
        final java.lang.Object this$_language = this.getLanguage();
        final java.lang.Object other$_language = other.getLanguage();
        if (this$_language == null ? other$_language != null : !this$_language.equals(other$_language)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof LanguageRun;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "LanguageRun(_end=" + this.getEnd() + ", _language=" + this.getLanguage() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy