// Generated by delombok at Tue Dec 16 19:35:15 UTC 2025
package net.md_5.bungee.protocol.data;

public class PlayerPublicKey {
    private final long expiry;
    private final byte[] key;
    private final byte[] signature;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PlayerPublicKey(final long expiry, final byte[] key, final byte[] signature) {
        this.expiry = expiry;
        this.key = key;
        this.signature = signature;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public long getExpiry() {
        return this.expiry;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public byte[] getKey() {
        return this.key;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public byte[] getSignature() {
        return this.signature;
    }

    @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 PlayerPublicKey)) return false;
        final PlayerPublicKey other = (PlayerPublicKey) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getExpiry() != other.getExpiry()) return false;
        if (!java.util.Arrays.equals(this.getKey(), other.getKey())) return false;
        if (!java.util.Arrays.equals(this.getSignature(), other.getSignature())) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final long $expiry = this.getExpiry();
        result = result * PRIME + (int) ($expiry >>> 32 ^ $expiry);
        result = result * PRIME + java.util.Arrays.hashCode(this.getKey());
        result = result * PRIME + java.util.Arrays.hashCode(this.getSignature());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "PlayerPublicKey(expiry=" + this.getExpiry() + ", key=" + java.util.Arrays.toString(this.getKey()) + ", signature=" + java.util.Arrays.toString(this.getSignature()) + ")";
    }
}
