- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
779 B
Java
23 lines
779 B
Java
package kotlin.text;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class StringsKt__AppendableKt {
|
|
public static void appendElement(Appendable appendable, Object obj, Function1 function1) {
|
|
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
|
if (function1 != null) {
|
|
appendable.append((CharSequence) function1.invoke(obj));
|
|
return;
|
|
}
|
|
if (obj == null || (obj instanceof CharSequence)) {
|
|
appendable.append((CharSequence) obj);
|
|
} else if (obj instanceof Character) {
|
|
appendable.append(((Character) obj).charValue());
|
|
} else {
|
|
appendable.append(String.valueOf(obj));
|
|
}
|
|
}
|
|
}
|