So, when I was preparing to present this, I double-checked a bunch of things that I was looking for earlier, and found what I somehow missed, and would relieve this question of necessity.
As it turned out, both of these parameters:
- Passing an argument as
List<String> - Passing an argument as
String[]
are viable (and you can replace Stringwith any type that the database can represent, for example charor int), you just need to change the syntax in the annotation @Query:
@Query("SELECT * FROM Table WHERE column IN :filterValues")
:
@Query("SELECT * FROM Table WHERE column IN (:filterValues)")
Easy as a pie, right?
, ( a String, (value_1, value_2, ..., value_n)), -, Room, , , , .
, , , , , , .