package com.bytedance.netecho.result;

import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class IcmpPacketResult {
    public final int errorCode;
    public final boolean success;
    public final float tripTimeMs;
    public final int ttl;

    static {
        Covode.recordClassIndex(36226);
    }

    public static /* synthetic */ IcmpPacketResult copy$default(IcmpPacketResult icmpPacketResult, boolean z, int i, float f, int i2, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            z = icmpPacketResult.success;
        }
        if ((i3 & 2) != 0) {
            i = icmpPacketResult.ttl;
        }
        if ((i3 & 4) != 0) {
            f = icmpPacketResult.tripTimeMs;
        }
        if ((i3 & 8) != 0) {
            i2 = icmpPacketResult.errorCode;
        }
        return icmpPacketResult.copy(z, i, f, i2);
    }

    private Object[] getObjects() {
        return new Object[]{Boolean.valueOf(this.success), Integer.valueOf(this.ttl), Float.valueOf(this.tripTimeMs), Integer.valueOf(this.errorCode)};
    }

    public final IcmpPacketResult copy(boolean z, int i, float f, int i2) {
        return new IcmpPacketResult(z, i, f, i2);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof IcmpPacketResult)) {
            return false;
        }
        return M12.LIZ(((IcmpPacketResult) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("IcmpPacketResult:%s,%s,%s,%s", getObjects());
    }

    public final int getErrorCode() {
        return this.errorCode;
    }

    public final boolean getSuccess() {
        return this.success;
    }

    public final float getTripTimeMs() {
        return this.tripTimeMs;
    }

    public final int getTtl() {
        return this.ttl;
    }

    public IcmpPacketResult(boolean z, int i, float f, int i2) {
        this.success = z;
        this.ttl = i;
        this.tripTimeMs = f;
        this.errorCode = i2;
    }
}
