0

I have pre-existing code which uses varargs to denote an incomming array of args. How does Room Database understand this?

@Insert
public abstract void insertData(Data... data);
a_local_nobody
  • 7,947
  • 5
  • 29
  • 51
Chandrahas Aroori
  • 955
  • 2
  • 14
  • 27
  • 1
    i've edited your question to refer to [varargs](https://stackoverflow.com/questions/2367398/what-is-the-ellipsis-for-in-this-method-signature) instead, but if this wasn't what you meant, please feel free to rollback – a_local_nobody Jan 17 '21 at 10:01
  • inside the function, its visible as an `Array` – Sekiro Jan 17 '21 at 10:06

0 Answers0