package j9; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public abstract class f { public static void a(Appendable appendable, Object obj, c9.l lVar) { d9.j.e(appendable, ""); if (lVar != null) { appendable.append((CharSequence) lVar.invoke(obj)); return; } if (obj == null ? true : obj instanceof CharSequence) { appendable.append((CharSequence) obj); } else if (obj instanceof Character) { appendable.append(((Character) obj).charValue()); } else { appendable.append(String.valueOf(obj)); } } }