package com.ifpdos.udi.sdk.kotlin.comment.parser;

import d.b.a.a.a;
import g.h0.c.l;
import g.i;

/* JADX INFO: compiled from: Token.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class Token {
    private final String semantic;
    private final TokenId type;

    public Token(TokenId tokenId, String str) {
        l.f(tokenId, "type");
        l.f(str, "semantic");
        this.type = tokenId;
        this.semantic = str;
    }

    public static /* synthetic */ Token copy$default(Token token, TokenId tokenId, String str, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            tokenId = token.type;
        }
        if ((i2 & 2) != 0) {
            str = token.semantic;
        }
        return token.copy(tokenId, str);
    }

    public final TokenId component1() {
        return this.type;
    }

    public final String component2() {
        return this.semantic;
    }

    public final Token copy(TokenId tokenId, String str) {
        l.f(tokenId, "type");
        l.f(str, "semantic");
        return new Token(tokenId, str);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Token)) {
            return false;
        }
        Token token = (Token) obj;
        return this.type == token.type && l.a(this.semantic, token.semantic);
    }

    public final String getSemantic() {
        return this.semantic;
    }

    public final TokenId getType() {
        return this.type;
    }

    public int hashCode() {
        return this.semantic.hashCode() + (this.type.hashCode() * 31);
    }

    public String toString() {
        StringBuilder sbB = a.B("Token(type=");
        sbB.append(this.type);
        sbB.append(", semantic=");
        return a.u(sbB, this.semantic, ')');
    }
}
