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,360
  • 5
  • 25
  • 45
Chandrahas Aroori
  • 877
  • 2
  • 13
  • 26
  • 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