@Override public void run() { if (!run) { return; } final Set<T> current = recordsSupplier.get(); if (ChangeNotifiers.isNoLongerInitial(current, records) || !current.equals(records)) { final ChangeNotification<T> changeNotification = newChangeNotification(current, records); records = current; fireRecordsUpdated(changeNotification); } }
@Override public void run() { if (!run) { return; } final Set<T> current = recordsSupplier.get(); if (ChangeNotifiers.isNoLongerInitial(current, records) || !current.equals(records)) { final ChangeNotification<T> changeNotification = newChangeNotification(current, records); records = current; fireRecordsUpdated(changeNotification); } }
private synchronized void checkChange() { Set<T> currentRecords = aggregateSet(); if (ChangeNotifiers.isNoLongerInitial(currentRecords, records) || !currentRecords.equals(records)) { final ChangeNotification<T> changeNotification = newChangeNotification(currentRecords, records); records = currentRecords; fireRecordsUpdated(changeNotification); } }
private synchronized void checkChange() { Set<T> currentRecords = aggregateSet(); if (ChangeNotifiers.isNoLongerInitial(currentRecords, records) || !currentRecords.equals(records)) { final ChangeNotification<T> changeNotification = newChangeNotification(currentRecords, records); records = currentRecords; fireRecordsUpdated(changeNotification); } }
if (ChangeNotifiers.isNoLongerInitial(current, records) || !current.equals(records)) {
if (ChangeNotifiers.isNoLongerInitial(current, records) || !current.equals(records)) {