use of io.requery.util.ObservableSet in project requery by requery.
the class ObservableCollectionTest method observableCollections.
@Parameterized.Parameters
public static <T extends Collection<Phone> & ObservableCollection<Phone>> Collection<T> observableCollections() {
Person person = new Person();
// ObservableList
List<Phone> observableList = person.getPhoneNumbersList();
assertTrue(observableList instanceof ObservableList);
// ObservableSet
Set<Phone> observableSet = person.getPhoneNumbersSet();
assertTrue(observableSet instanceof ObservableSet);
return Arrays.asList((T) observableList, (T) observableSet);
}
Aggregations