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

import d.b.a.a.a;
import g.h0.c.l;
import g.i;
import java.util.Map;

/* JADX INFO: compiled from: Comment.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class Comment {
    private final CommentDetails documentComment;
    private final Map<String, CommentDetails> elementComments;

    public Comment(CommentDetails commentDetails, Map<String, CommentDetails> map) {
        l.f(commentDetails, "documentComment");
        l.f(map, "elementComments");
        this.documentComment = commentDetails;
        this.elementComments = map;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ Comment copy$default(Comment comment, CommentDetails commentDetails, Map map, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            commentDetails = comment.documentComment;
        }
        if ((i2 & 2) != 0) {
            map = comment.elementComments;
        }
        return comment.copy(commentDetails, map);
    }

    public final CommentDetails component1() {
        return this.documentComment;
    }

    public final Map<String, CommentDetails> component2() {
        return this.elementComments;
    }

    public final Comment copy(CommentDetails commentDetails, Map<String, CommentDetails> map) {
        l.f(commentDetails, "documentComment");
        l.f(map, "elementComments");
        return new Comment(commentDetails, map);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Comment)) {
            return false;
        }
        Comment comment = (Comment) obj;
        return l.a(this.documentComment, comment.documentComment) && l.a(this.elementComments, comment.elementComments);
    }

    public final CommentDetails getDocumentComment() {
        return this.documentComment;
    }

    public final Map<String, CommentDetails> getElementComments() {
        return this.elementComments;
    }

    public int hashCode() {
        return this.elementComments.hashCode() + (this.documentComment.hashCode() * 31);
    }

    public String toString() {
        StringBuilder sbB = a.B("Comment(documentComment=");
        sbB.append(this.documentComment);
        sbB.append(", elementComments=");
        sbB.append(this.elementComments);
        sbB.append(')');
        return sbB.toString();
    }
}
