70 lines
2.4 KiB
Java
70 lines
2.4 KiB
Java
package com.discord.widgets.chat.input.autocomplete;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.commands.CommandChoice;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: Autocompletable.kt */
|
|
public final class ApplicationCommandChoiceAutocompletable extends Autocompletable {
|
|
private final CommandChoice choice;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ApplicationCommandChoiceAutocompletable(CommandChoice commandChoice) {
|
|
super(null);
|
|
m.checkNotNullParameter(commandChoice, "choice");
|
|
this.choice = commandChoice;
|
|
}
|
|
|
|
public static /* synthetic */ ApplicationCommandChoiceAutocompletable copy$default(ApplicationCommandChoiceAutocompletable applicationCommandChoiceAutocompletable, CommandChoice commandChoice, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
commandChoice = applicationCommandChoiceAutocompletable.choice;
|
|
}
|
|
return applicationCommandChoiceAutocompletable.copy(commandChoice);
|
|
}
|
|
|
|
public final CommandChoice component1() {
|
|
return this.choice;
|
|
}
|
|
|
|
public final ApplicationCommandChoiceAutocompletable copy(CommandChoice commandChoice) {
|
|
m.checkNotNullParameter(commandChoice, "choice");
|
|
return new ApplicationCommandChoiceAutocompletable(commandChoice);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof ApplicationCommandChoiceAutocompletable) && m.areEqual(this.choice, ((ApplicationCommandChoiceAutocompletable) obj).choice);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final CommandChoice getChoice() {
|
|
return this.choice;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.autocomplete.Autocompletable
|
|
public String getInputReplacement() {
|
|
return this.choice.b();
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.autocomplete.Autocompletable
|
|
public List<String> getInputTextMatchers() {
|
|
return d0.t.m.listOf(this.choice.a());
|
|
}
|
|
|
|
public int hashCode() {
|
|
CommandChoice commandChoice = this.choice;
|
|
if (commandChoice != null) {
|
|
return commandChoice.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("ApplicationCommandChoiceAutocompletable(choice=");
|
|
L.append(this.choice);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|