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

io.github.humbleui.skija.shaper.ScriptRun 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.*;
import io.github.humbleui.skija.*;

public class ScriptRun {
    @ApiStatus.Internal
    public final int _end;
    @ApiStatus.Internal
    public final int _scriptTag;

    public ScriptRun(int end, String script) {
        this(end, FourByteTag.fromString(script));
    }

    /**
     * Should be iso15924 codes.
     */
    public String getScript() {
        return FourByteTag.toString(_scriptTag);
    }

    @java.lang.SuppressWarnings("all")
    public ScriptRun(final int end, final int scriptTag) {
        this._end = end;
        this._scriptTag = scriptTag;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof ScriptRun)) return false;
        final ScriptRun other = (ScriptRun) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getEnd() != other.getEnd()) return false;
        if (this.getScriptTag() != other.getScriptTag()) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getEnd();
        result = result * PRIME + this.getScriptTag();
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "ScriptRun(_end=" + this.getEnd() + ", _scriptTag=" + this.getScriptTag() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy