| cleanup | back to summary
|
|---|
| public List<FieldChange> cleanup(BibEntry entry) Cleans up the given entry and returns the list of changes made.
|
| cleanup | back to summary
|
|---|
| public default List<FieldChange> cleanup(BibEntry entry, Consumer<Runnable> mutationScheduler) Cleans up the given entry, routing all BibEntry field mutations through the provided scheduler.
The scheduler must execute mutations synchronously (blocking the caller until complete), e.g.
UiTaskExecutor::runAndWaitInJavaFXThread when called from a background thread,
or Runnable::run when already on the correct thread.
The default implementation wraps the entire cleanup(BibEntry) call in the scheduler, which
is safe but puts all computation on the scheduler's thread. Override this method to keep expensive
computation on the calling (background) thread and only schedule the actual field mutations.
|