Firebase Realtime Database returns ArrayList or HashMap depending on the value queried
I have a Fierbase Realtime Database with the following structure:
data
0
category : "Some category"
1
category : "Some category"
2
category : "Another category"
It is a long list with items of different categories (they have more fields, buy they are irrelevant for this I think).
I am doing a query to get all the items of a given category:
firebaseDatabase.child("data")
.orderByChild("category")
.equalTo(category.name)
And I am...