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