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

ru.noties.prism4j.bundler.LanguageInfo Maven / Gradle / Ivy

The newest version!
package ru.noties.prism4j.bundler;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.util.List;

public class LanguageInfo {

    public final String name;
    public final List aliases;
    public final String extend;
    public final List modify;
    public final String source;

    public LanguageInfo(
            @NonNull String name,
            @Nullable List aliases,
            @Nullable String extend,
            @Nullable List modify,
            @NonNull String source
    ) {
        this.name = name;
        this.aliases = aliases;
        this.extend = extend;
        this.modify = modify;
        this.source = source;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LanguageInfo that = (LanguageInfo) o;

        return name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }

    @Override
    public String toString() {
        return "LanguageInfo{" +
                "name='" + name + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy