Top Inners Fields Constructors Methods
org.jabref.gui.duplicationFinder

public Class DuplicateSearch

extends SimpleCommand
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .HashMap, .List, .Map, java.util.concurrent.BlockingQueue, .LinkedBlockingQueue, .TimeUnit, java.util.concurrent.atomic.AtomicBoolean, .AtomicInteger, java.util.function.Supplier, javafx.beans.binding.Bindings, javafx.beans.property.SimpleIntegerProperty, .SimpleStringProperty, org.jabref.gui.DialogService, .LibraryTab, .StateManager, org.jabref.gui.actions.SimpleCommand, org.jabref.gui.duplicationFinder.DuplicateResolverDialog.DuplicateResolverResult, .DuplicateResolverDialog.DuplicateResolverType, org.jabref.gui.undo.NamedCompound, .UndoableInsertEntries, .UndoableRemoveEntries, org.jabref.gui.util.BackgroundTask, .TaskExecutor, .UiTaskExecutor, org.jabref.logic.database.DuplicateCheck, org.jabref.logic.l10n.Localization, org.jabref.logic.util.HeadlessExecutorService, org.jabref.model.database.BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.preferences.PreferencesService

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
DuplicateSearch.DuplicateSearchResult

Result of a duplicate search.

Field Summary

Modifier and TypeField and Description
private final AtomicBoolean
private final DialogService
private final AtomicInteger
private final SimpleStringProperty
private final SimpleIntegerProperty
private final BlockingQueue<List<BibEntry>>
private final SimpleStringProperty
private final BibEntryTypesManager
private final AtomicBoolean
private final PreferencesService
private final StateManager
private final Supplier<LibraryTab>
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
DuplicateSearch(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, PreferencesService prefs, BibEntryTypesManager entryTypesManager, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
private void
public void
private void
private void
private DuplicateSearch.DuplicateSearchResult
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

autoRemoveExactDuplicatesback to summary
private final AtomicBoolean autoRemoveExactDuplicates
dialogServiceback to summary
private final DialogService dialogService
duplicateCountback to summary
private final AtomicInteger duplicateCount
duplicateCountObservableback to summary
private final SimpleStringProperty duplicateCountObservable
duplicateProgressback to summary
private final SimpleIntegerProperty duplicateProgress
duplicatesback to summary
private final BlockingQueue<List<BibEntry>> duplicates
duplicateTotalback to summary
private final SimpleStringProperty duplicateTotal
entryTypesManagerback to summary
private final BibEntryTypesManager entryTypesManager
libraryAnalyzedback to summary
private final AtomicBoolean libraryAnalyzed
prefsback to summary
private final PreferencesService prefs
stateManagerback to summary
private final StateManager stateManager
tabSupplierback to summary
private final Supplier<LibraryTab> tabSupplier
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

DuplicateSearchback to summary
public DuplicateSearch(Supplier<LibraryTab> tabSupplier, DialogService dialogService, StateManager stateManager, PreferencesService prefs, BibEntryTypesManager entryTypesManager, TaskExecutor taskExecutor)

Method Detail

askResolveStrategyback to summary
private void askResolveStrategy(DuplicateSearch.DuplicateSearchResult result, BibEntry first, BibEntry second, DuplicateResolverDialog.DuplicateResolverType resolverType)
executeback to summary
public void execute()
Annotations
@Override
handleDuplicatesback to summary
private void handleDuplicates(DuplicateSearch.DuplicateSearchResult result)
searchPossibleDuplicatesback to summary
private void searchPossibleDuplicates(List<BibEntry> entries, BibDatabaseMode databaseMode)
verifyDuplicatesback to summary
private DuplicateSearch.DuplicateSearchResult verifyDuplicates()
org.jabref.gui.duplicationFinder back to summary

pack-priv Class DuplicateSearch.DuplicateSearchResult

extends Object
Class Inheritance
  • java.lang.Object
  • org.jabref.gui.duplicationFinder.DuplicateSearch.DuplicateSearchResult

Result of a duplicate search. Uses System#identityHashCode(Object) for identifying objects for removal, as completely identical BibEntries are equal to each other.

Field Summary

Modifier and TypeField and Description
private int
private final List<BibEntry>
private final Map<Integer, BibEntry>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized int
public synchronized List<BibEntry>
public synchronized List<BibEntry>
public synchronized boolean
public synchronized void
public synchronized void
replace(BibEntry first, BibEntry second, BibEntry replacement)

public synchronized void
replace(BibEntry entry, BibEntry replacement)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

duplicatesback to summary
private int duplicates
toAddback to summary
private final List<BibEntry> toAdd
toRemoveback to summary
private final Map<Integer, BibEntry> toRemove

Constructor Detail

DuplicateSearchResultback to summary
pack-priv DuplicateSearchResult()

Method Detail

getDuplicateCountback to summary
public synchronized int getDuplicateCount()
getToAddback to summary
public synchronized List<BibEntry> getToAdd()
getToRemoveback to summary
public synchronized List<BibEntry> getToRemove()
isToRemoveback to summary
public synchronized boolean isToRemove(BibEntry entry)
removeback to summary
public synchronized void remove(BibEntry entry)
replaceback to summary
public synchronized void replace(BibEntry first, BibEntry second, BibEntry replacement)
replaceback to summary
public synchronized void replace(BibEntry entry, BibEntry replacement)