Why we use contentValues() for getting the value of each row

Why we use contentValues() for getting the value of each row???

@KetanPandey
ContentValues() creates a key value pair similar to Hashmap where the keys are of String types.

under the hood Hashmap implements Serializable
and ContentValues() implements Parcelable which makes it faster than Hashmap().

you can consider ContentValues as a extension of Hashmap to store typed values used for SQLiteDatabase or ContentResolver