/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.log.syslog;

import com.l7tech.server.log.syslog.SyslogProtocol;
import java.net.SocketAddress;

final class c {
    private final SyslogProtocol a;
    private final SocketAddress[] b;

    c(SyslogProtocol syslogProtocol, SocketAddress[] socketAddressArray) {
        this.a = syslogProtocol;
        this.b = socketAddressArray;
    }

    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || this.getClass() != object.getClass()) {
            return false;
        }
        c c10 = (c)object;
        if (this.a != c10.a) {
            return false;
        }
        if (this.b.length != c10.b.length) {
            return false;
        }
        for (int i2 = 0; i2 < this.b.length; ++i2) {
            if (this.b[i2].equals(c10.b[i2])) continue;
            return false;
        }
        return true;
    }

    public int hashCode() {
        int n2 = this.a.hashCode();
        for (SocketAddress socketAddress : this.b) {
            n2 = 31 * n2 + socketAddress.hashCode();
        }
        return n2;
    }
}

