discord-jadx/app/src/main/java/com/discord/widgets/chat/input/sticker/HeaderItem.java

70 lines
2.0 KiB
Java

package com.discord.widgets.chat.input.sticker;
import c.d.b.a.a;
import com.discord.utilities.mg_recycler.MGRecyclerDataPayload;
import d0.z.d.m;
/* compiled from: StickerAdapterItems.kt */
public final class HeaderItem implements MGRecyclerDataPayload {
private final HeaderType headerType;
private final String key;
private final int type;
public HeaderItem(HeaderType headerType) {
m.checkNotNullParameter(headerType, "headerType");
this.headerType = headerType;
this.key = headerType.getId();
}
public static /* synthetic */ HeaderItem copy$default(HeaderItem headerItem, HeaderType headerType, int i, Object obj) {
if ((i & 1) != 0) {
headerType = headerItem.headerType;
}
return headerItem.copy(headerType);
}
public final HeaderType component1() {
return this.headerType;
}
public final HeaderItem copy(HeaderType headerType) {
m.checkNotNullParameter(headerType, "headerType");
return new HeaderItem(headerType);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof HeaderItem) && m.areEqual(this.headerType, ((HeaderItem) obj).headerType);
}
return true;
}
public final HeaderType getHeaderType() {
return this.headerType;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
public int getType() {
return this.type;
}
public int hashCode() {
HeaderType headerType = this.headerType;
if (headerType != null) {
return headerType.hashCode();
}
return 0;
}
public String toString() {
StringBuilder K = a.K("HeaderItem(headerType=");
K.append(this.headerType);
K.append(")");
return K.toString();
}
}