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

79 lines
2.4 KiB
Java

package com.discord.widgets.chat.input;
import c.d.b.a.a;
import com.discord.models.commands.Application;
import d0.z.d.m;
/* compiled from: WidgetChatInputCategoriesAdapter.kt */
public final class CommandCategoryItem {
private final Application application;
private final boolean isSelected;
public CommandCategoryItem(Application application, boolean z2) {
m.checkNotNullParameter(application, "application");
this.application = application;
this.isSelected = z2;
}
public static /* synthetic */ CommandCategoryItem copy$default(CommandCategoryItem commandCategoryItem, Application application, boolean z2, int i, Object obj) {
if ((i & 1) != 0) {
application = commandCategoryItem.application;
}
if ((i & 2) != 0) {
z2 = commandCategoryItem.isSelected;
}
return commandCategoryItem.copy(application, z2);
}
public final Application component1() {
return this.application;
}
public final boolean component2() {
return this.isSelected;
}
public final CommandCategoryItem copy(Application application, boolean z2) {
m.checkNotNullParameter(application, "application");
return new CommandCategoryItem(application, z2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CommandCategoryItem)) {
return false;
}
CommandCategoryItem commandCategoryItem = (CommandCategoryItem) obj;
return m.areEqual(this.application, commandCategoryItem.application) && this.isSelected == commandCategoryItem.isSelected;
}
public final Application getApplication() {
return this.application;
}
public int hashCode() {
Application application = this.application;
int hashCode = (application != null ? application.hashCode() : 0) * 31;
boolean z2 = this.isSelected;
if (z2) {
z2 = true;
}
int i = z2 ? 1 : 0;
int i2 = z2 ? 1 : 0;
int i3 = z2 ? 1 : 0;
return hashCode + i;
}
public final boolean isSelected() {
return this.isSelected;
}
public String toString() {
StringBuilder P = a.P("CommandCategoryItem(application=");
P.append(this.application);
P.append(", isSelected=");
return a.L(P, this.isSelected, ")");
}
}