22 lines
725 B
Java
22 lines
725 B
Java
|
package d0.g0;
|
||
|
|
||
|
import d0.z.d.m;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: Appendable.kt */
|
||
|
public class l {
|
||
|
public static final <T> void appendElement(Appendable appendable, T t, Function1<? super T, ? extends CharSequence> function1) {
|
||
|
m.checkNotNullParameter(appendable, "$this$appendElement");
|
||
|
if (function1 != null) {
|
||
|
appendable.append((CharSequence) function1.invoke(t));
|
||
|
return;
|
||
|
}
|
||
|
if (t != null ? t instanceof CharSequence : true) {
|
||
|
appendable.append(t);
|
||
|
} else if (t instanceof Character) {
|
||
|
appendable.append(t.charValue());
|
||
|
} else {
|
||
|
appendable.append(String.valueOf(t));
|
||
|
}
|
||
|
}
|
||
|
}
|