107 lines
3.6 KiB
Java
107 lines
3.6 KiB
Java
package com.discord.widgets.chat.input.autocomplete;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.g;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import kotlin.Lazy;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: Autocompletable.kt */
|
|
public final class GlobalRoleAutocompletable extends Autocompletable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final Lazy everyone$delegate = g.lazy(GlobalRoleAutocompletable$Companion$everyone$2.INSTANCE);
|
|
private static final Lazy here$delegate = g.lazy(GlobalRoleAutocompletable$Companion$here$2.INSTANCE);
|
|
private final String text;
|
|
|
|
/* compiled from: Autocompletable.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final GlobalRoleAutocompletable getEveryone() {
|
|
Lazy access$getEveryone$cp = GlobalRoleAutocompletable.access$getEveryone$cp();
|
|
Companion companion = GlobalRoleAutocompletable.Companion;
|
|
return (GlobalRoleAutocompletable) access$getEveryone$cp.getValue();
|
|
}
|
|
|
|
public final GlobalRoleAutocompletable getHere() {
|
|
Lazy access$getHere$cp = GlobalRoleAutocompletable.access$getHere$cp();
|
|
Companion companion = GlobalRoleAutocompletable.Companion;
|
|
return (GlobalRoleAutocompletable) access$getHere$cp.getValue();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public GlobalRoleAutocompletable(String str) {
|
|
super(null);
|
|
m.checkNotNullParameter(str, "text");
|
|
this.text = str;
|
|
}
|
|
|
|
public static final /* synthetic */ Lazy access$getEveryone$cp() {
|
|
return everyone$delegate;
|
|
}
|
|
|
|
public static final /* synthetic */ Lazy access$getHere$cp() {
|
|
return here$delegate;
|
|
}
|
|
|
|
public static /* synthetic */ GlobalRoleAutocompletable copy$default(GlobalRoleAutocompletable globalRoleAutocompletable, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = globalRoleAutocompletable.text;
|
|
}
|
|
return globalRoleAutocompletable.copy(str);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.text;
|
|
}
|
|
|
|
public final GlobalRoleAutocompletable copy(String str) {
|
|
m.checkNotNullParameter(str, "text");
|
|
return new GlobalRoleAutocompletable(str);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof GlobalRoleAutocompletable) && m.areEqual(this.text, ((GlobalRoleAutocompletable) obj).text);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.autocomplete.Autocompletable
|
|
public String getInputReplacement() {
|
|
return leadingIdentifier().getIdentifier() + this.text;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.autocomplete.Autocompletable
|
|
public List<String> getInputTextMatchers() {
|
|
return d0.t.m.listOf(leadingIdentifier().getIdentifier() + this.text);
|
|
}
|
|
|
|
public final String getText() {
|
|
return this.text;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.text;
|
|
if (str != null) {
|
|
return str.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.input.autocomplete.Autocompletable
|
|
public LeadingIdentifier leadingIdentifier() {
|
|
return LeadingIdentifier.MENTION;
|
|
}
|
|
|
|
public String toString() {
|
|
return a.D(a.L("GlobalRoleAutocompletable(text="), this.text, ")");
|
|
}
|
|
}
|