Convert ThreadDatabase to kotlin.

This commit is contained in:
Greyson Parrelli
2022-10-28 10:57:01 -04:00
committed by Cody Henthorne
parent 4bbe01cbc3
commit 3e3296da5b
6 changed files with 1769 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;
}
}
}