Verified Owner
Top Constructors Methods
org.jabref.gui.collab

public final Class DatabaseChangeList

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, .Optional, org.jabref.gui.collab.entryadd.EntryAdd, org.jabref.gui.collab.entrychange.EntryChange, org.jabref.gui.collab.entrydelete.EntryDelete, org.jabref.gui.collab.groupchange.GroupChange, org.jabref.gui.collab.metedatachange.MetadataChange, org.jabref.gui.collab.preamblechange.PreambleChange, org.jabref.gui.collab.stringadd.BibTexStringAdd, org.jabref.gui.collab.stringchange.BibTexStringChange, org.jabref.gui.collab.stringdelete.BibTexStringDelete, org.jabref.gui.collab.stringrename.BibTexStringRename, org.jabref.logic.bibtex.comparator.BibDatabaseDiff, .BibEntryDiff, .BibStringDiff, org.jabref.model.database.BibDatabaseContext

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static List<DatabaseChange>

Returns:

an unmodifiable list of DatabaseChange required to change originalDatabase into otherDatabase
compareAndGetChanges
(BibDatabaseContext
This is the original database
originalDatabase
,
BibDatabaseContext
This is the other database.
otherDatabase
,
DatabaseChangeResolverFactory databaseChangeResolverFactory)

Compares the given two databases, and returns the list of changes required to change the originalDatabase into the otherDatabase

private static Optional<DatabaseChange>
createBibEntryDiff(BibDatabaseContext originalDatabase, DatabaseChangeResolverFactory databaseChangeResolverFactory, BibEntryDiff diff)

private static Optional<DatabaseChange>
createBibStringDiff(BibDatabaseContext originalDatabase, DatabaseChangeResolverFactory databaseChangeResolverFactory, BibStringDiff diff)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DatabaseChangeListback to summary
private DatabaseChangeList()

Method Detail

compareAndGetChangesback to summary
public static List<DatabaseChange> compareAndGetChanges(BibDatabaseContext originalDatabase, BibDatabaseContext otherDatabase, DatabaseChangeResolverFactory databaseChangeResolverFactory)

Compares the given two databases, and returns the list of changes required to change the originalDatabase into the otherDatabase

Parameters
originalDatabase:BibDatabaseContext

This is the original database

otherDatabase:BibDatabaseContext

This is the other database.

Returns:List<DatabaseChange>

an unmodifiable list of DatabaseChange required to change originalDatabase into otherDatabase

createBibEntryDiffback to summary
private static Optional<DatabaseChange> createBibEntryDiff(BibDatabaseContext originalDatabase, DatabaseChangeResolverFactory databaseChangeResolverFactory, BibEntryDiff diff)
createBibStringDiffback to summary
private static Optional<DatabaseChange> createBibStringDiff(BibDatabaseContext originalDatabase, DatabaseChangeResolverFactory databaseChangeResolverFactory, BibStringDiff diff)