Verified Owner
Top Fields Constructors Methods
org.jabref.logic.bibtex.comparator

public Class GroupDiff

extends Object
Class Inheritance
Imports
java.util.Optional, org.jabref.model.groups.GroupTreeNode, org.jabref.model.metadata.MetaData

Field Summary

Modifier and TypeField and Description
private final GroupTreeNode
private final GroupTreeNode

Constructor Summary

AccessConstructor and Description
pack-priv
GroupDiff(GroupTreeNode originalGroupRoot, GroupTreeNode newGroupRoot)

Method Summary

Modifier and TypeMethod and Description
public static Optional<GroupDiff>
compare(MetaData originalMetaData, MetaData newMetaData)

This method only detects whether a change took place or not.

public GroupTreeNode
public GroupTreeNode
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newGroupRootback to summary
private final GroupTreeNode newGroupRoot
originalGroupRootback to summary
private final GroupTreeNode originalGroupRoot

Constructor Detail

GroupDiffback to summary
pack-priv GroupDiff(GroupTreeNode originalGroupRoot, GroupTreeNode newGroupRoot)

Method Detail

compareback to summary
public static Optional<GroupDiff> compare(MetaData originalMetaData, MetaData newMetaData)

This method only detects whether a change took place or not. It does not determine the type of change. This would be possible, but difficult to do properly, so we rather only report the change.

getNewGroupRootback to summary
public GroupTreeNode getNewGroupRoot()
getOriginalGroupRootback to summary
public GroupTreeNode getOriginalGroupRoot()