SouthBeach
SouthBeach

Reputation: 31

ObjectBox toMany List

I have two entities connected with a One-to-Many relation and I want to have the whole List of the elements.
I tried:

int count = showcase.notices.size();
List<Notice> notList = showcase.notices.subList(0, count);

the sublist definition says sublist(int start, int end) where the end is not part of the list.
There is a more direct way to obtain the whole list?
Someting like

List<Notice> notList = showcase.notices.getList();

Upvotes: 0

Views: 313

Answers (1)

Markus Junginger
Markus Junginger

Reputation: 7075

Your showcase.notices is already a List.

Upvotes: 0

Related Questions