| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final double | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final BibEntryTypesManager | |
| private static final int | |
| private static final Map | |
| private static final Logger | |
| private static final int | |
| private static final Pattern | |
| private static final double | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| public static double | |
| private static int | |
| private static double[] | |
| private static int | compareJournalField(final String stringOne, final String stringTwo)
We do not attempt to harmonize abbreviation state of the journal names, but we remove periods from the names in case they are abbreviated with and without dots: |
| private static boolean | compareOptionalFields(final BibEntryType type, final BibEntry one, final BibEntry two, final double[] req)
|
| private static int | comparePagesField(final String stringOne, final String stringTwo)
Pages can be given with a variety of delimiters, "-", "--", " - ", " -- ". |
| private static double[] | |
| private static int | |
| public Optional | Returns: The first duplicate entry found. Empty Optional if no duplicates are found.The database to search. database, final BibEntry The entry of which we are looking for duplicates. entry, final BibDatabaseMode bibDatabaseMode)Goes through all entries in the given database, and if at least one of them is a duplicate of the given entry, as per Util.isDuplicate(BibEntry, BibEntry), the duplicate is returned. |
| public Optional | Returns: The first duplicate entry found. Empty Optional if no duplicates are found.The entries to search. entries, final BibEntry The entry of which we are looking for duplicates. entry, final BibDatabaseMode bibDatabaseMode)Same as |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public boolean | isDuplicate(final BibEntry one, final BibEntry two, final BibDatabaseMode bibDatabaseMode)
Checks if the two entries represent the same publication. |
| private static boolean | |
| private static boolean | Returns: true if the content is equal (with normalized linebreaks), false otherwise.Compares the string content of the given field at each entry character by character. |
| DOUBT_RANGE | back to summary |
|---|---|
| private static final double DOUBT_RANGE | |
| DUPLICATE_THRESHOLD | back to summary |
|---|---|
| private static final double DUPLICATE_THRESHOLD | |
| EMPTY_IN_BOTH | back to summary |
|---|---|
| private static final int EMPTY_IN_BOTH | |
| EMPTY_IN_ONE | back to summary |
|---|---|
| private static final int EMPTY_IN_ONE | |
| EMPTY_IN_TWO | back to summary |
|---|---|
| private static final int EMPTY_IN_TWO | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| EQUAL | back to summary |
|---|---|
| private static final int EQUAL | |
| FIELD_WEIGHTS | back to summary |
|---|---|
| private static final Map<Field, Double> FIELD_WEIGHTS | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NOT_EQUAL | back to summary |
|---|---|
| private static final int NOT_EQUAL | |
| PAGE_SEPARATOR_PATTERN | back to summary |
|---|---|
| private static final Pattern PAGE_SEPARATOR_PATTERN | |
| REQUIRED_WEIGHT | back to summary |
|---|---|
| private static final double REQUIRED_WEIGHT | |
| STANDARD_ENTRY_TYPES | back to summary |
|---|---|
| private static final Set<StandardEntryType> STANDARD_ENTRY_TYPES | |
| DuplicateCheck | back to summary |
|---|---|
| public DuplicateCheck(BibEntryTypesManager entryTypesManager) | |
| compareAuthorField | back to summary |
|---|---|
| private static int compareAuthorField(final String stringOne, final String stringTwo) | |
| compareChapterField | back to summary |
|---|---|
| private static int compareChapterField(final String stringOne, final String stringTwo) | |
| compareEntriesStrictly | back to summary |
|---|---|
| public static double compareEntriesStrictly(BibEntry one, BibEntry two) | |
| compareField | back to summary |
|---|---|
| private static int compareField(final String stringOne, final String stringTwo) | |
| compareFieldSet | back to summary |
|---|---|
| private static double[] compareFieldSet(final Collection<Field> fields, final BibEntry one, final BibEntry two) | |
| compareJournalField | back to summary |
|---|---|
| private static int compareJournalField(final String stringOne, final String stringTwo) We do not attempt to harmonize abbreviation state of the journal names, but we remove periods from the names in case they are abbreviated with and without dots: | |
| compareOptionalFields | back to summary |
|---|---|
| private static boolean compareOptionalFields(final BibEntryType type, final BibEntry one, final BibEntry two, final double[] req) | |
| comparePagesField | back to summary |
|---|---|
| private static int comparePagesField(final String stringOne, final String stringTwo) Pages can be given with a variety of delimiters, "-", "--", " - ", " -- ". We do a replace to harmonize these to a simple "-" After this, a simple test for equality should be enough | |
| compareRequiredFields | back to summary |
|---|---|
| private static double[] compareRequiredFields(final BibEntryType type, final BibEntry one, final BibEntry two) | |
| compareSingleField | back to summary |
|---|---|
| private static int compareSingleField(final Field field, final BibEntry one, final BibEntry two) | |
| containsDuplicate | back to summary |
|---|---|
| public Optional Goes through all entries in the given database, and if at least one of them is a duplicate of the given entry, as per Util.isDuplicate(BibEntry, BibEntry), the duplicate is returned. The search is terminated when the first duplicate is found.
| |
| containsDuplicate | back to summary |
|---|---|
| public Optional Same as Callers which do not run on the JavaFX Application Thread should pass a snapshot:
| |
| haveDifferentChaptersOrPagesOfTheSameBook | back to summary |
|---|---|
| private static boolean haveDifferentChaptersOrPagesOfTheSameBook(final BibEntry one, final BibEntry two) | |
| haveDifferentEditions | back to summary |
|---|---|
| private static boolean haveDifferentEditions(final BibEntry one, final BibEntry two) | |
| haveDifferentEntryType | back to summary |
|---|---|
| private static boolean haveDifferentEntryType(final BibEntry one, final BibEntry two) | |
| haveSameIdentifier | back to summary |
|---|---|
| private static boolean haveSameIdentifier(final BibEntry one, final BibEntry two) | |
| isCommentEqual | back to summary |
|---|---|
| private static boolean isCommentEqual(BibEntry one, BibEntry two) | |
| isDuplicate | back to summary |
|---|---|
| public boolean isDuplicate(final BibEntry one, final BibEntry two, final BibDatabaseMode bibDatabaseMode) Checks if the two entries represent the same publication. | |
| isFarFromThreshold | back to summary |
|---|---|
| private static boolean isFarFromThreshold(double value) | |
| isSingleFieldEqual | back to summary |
|---|---|
| private static boolean isSingleFieldEqual(BibEntry one, BibEntry two, Field field) Compares the string content of the given field at each entry character by character.
| |