// Generated by delombok at Tue Dec 16 19:35:27 UTC 2025
package net.md_5.bungee.api.scheduler;

import java.util.concurrent.ThreadFactory;
import net.md_5.bungee.api.plugin.Plugin;

@Deprecated
public class GroupedThreadFactory implements ThreadFactory {
    private final ThreadGroup group;


    public static final class BungeeGroup extends ThreadGroup {
        private BungeeGroup(String name) {
            super(name);
        }
    }

    public GroupedThreadFactory(Plugin plugin, String name) {
        this.group = new BungeeGroup(name);
    }

    @Override
    public Thread newThread(Runnable r) {
        return new Thread(group, r);
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public ThreadGroup getGroup() {
        return this.group;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof GroupedThreadFactory)) return false;
        final GroupedThreadFactory other = (GroupedThreadFactory) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$group = this.getGroup();
        final java.lang.Object other$group = other.getGroup();
        if (this$group == null ? other$group != null : !this$group.equals(other$group)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "GroupedThreadFactory(group=" + this.getGroup() + ")";
    }
}
