Convert ThreadDatabase to kotlin.

This commit is contained in:
Greyson Parrelli
2022-10-24 13:18:42 -04:00
committed by Alex Hart
parent d2b72fc8b7
commit 1e88fb428d
6 changed files with 1765 additions and 1964 deletions

View File

@@ -104,12 +104,4 @@ public final class CursorUtil {
return row.toString();
}
public static @Nullable <T> T getAggregateOrDefault(@NonNull Cursor cursor, @Nullable T defaultValue, @NonNull Function<Integer, T> cursorColumnFn) {
if (cursor.moveToFirst()) {
return cursorColumnFn.apply(0);
} else {
return defaultValue;
}
}
}