| Modifier and Type | Class and Description |
|---|---|
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private final ImportFormatPreferences | |
| private static final Logger | |
| private static final NonSpaceWhitespaceRemover | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Optional | |
| public Optional | |
| private Optional | |
| private Optional | |
| private Optional | |
| private void | |
| private MergingIdBasedFetcher. | |
| private boolean | |
| private boolean | updateCitationKeyFromSource(BibEntry sourceEntry, BibEntry targetEntry)
Carries the fetcher-provided citation key (e.g. an INSPIRE texkey) onto the merged entry, but only if the library entry didn't already have one — an existing key is never overwritten here. |
| private void | |
| private Set |
| importFormatPreferences | back to summary |
|---|---|
| private final ImportFormatPreferences importFormatPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| REMOVE_WHITESPACE_FORMATTER | back to summary |
|---|---|
| private static final NonSpaceWhitespaceRemover REMOVE_WHITESPACE_FORMATTER | |
| SUPPORTED_FIELDS | back to summary |
|---|---|
| private static final List<StandardField> SUPPORTED_FIELDS | |
| MergingIdBasedFetcher | back to summary |
|---|---|
| public MergingIdBasedFetcher(ImportFormatPreferences importFormatPreferences) | |
| executeFetch | back to summary |
|---|---|
| private Optional | |
| fetchEntry | back to summary |
|---|---|
| public Optional | |
| fetchWithField | back to summary |
|---|---|
| private Optional | |
| fetchWithIdentifier | back to summary |
|---|---|
| private Optional | |
| findFirstValidFetch | back to summary |
|---|---|
| private Optional | |
| logEntryProcessing | back to summary |
|---|---|
| private void logEntryProcessing(BibEntry entry) | |
| mergeBibEntries | back to summary |
|---|---|
| private MergingIdBasedFetcher. | |
| shouldUpdateField | back to summary |
|---|---|
| private boolean shouldUpdateField(Field field, BibEntry sourceEntry, BibEntry targetEntry) | |
| updateCitationKeyFromSource | back to summary |
|---|---|
| private boolean updateCitationKeyFromSource(BibEntry sourceEntry, BibEntry targetEntry) Carries the fetcher-provided citation key (e.g. an INSPIRE texkey) onto the merged entry, but only if the library entry didn't already have one — an existing key is never overwritten here. | |
| updateField | back to summary |
|---|---|
| private void updateField(Field field, BibEntry sourceEntry, BibEntry targetEntry) | |
| updateFieldsFromSource | back to summary |
|---|---|
| private Set | |
| Modifier and Type | Field and Description |
|---|---|
| private final BibEntry | entryFromLibrary
Record Component accessed by entryFromLibrary(). |
| private final boolean | hasChanges
Record Component accessed by hasChanges(). |
| private final BibEntry | mergedEntry
Record Component accessed by mergedEntry(). |
| private final Set | updatedFields
Record Component accessed by updatedFields(). |
| Access | Constructor and Description |
|---|---|
| public | FetcherResult(BibEntry entryFromLibrary, BibEntry mergedEntry, boolean hasChanges, Set<Field> updatedFields)
|
| Modifier and Type | Method and Description |
|---|---|
| public BibEntry | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public final int | |
| public BibEntry | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Set |
| entryFromLibrary | back to summary |
|---|---|
| private final BibEntry entryFromLibrary Record Component accessed by entryFromLibrary(). | |
| hasChanges | back to summary |
|---|---|
| private final boolean hasChanges Record Component accessed by hasChanges(). | |
| mergedEntry | back to summary |
|---|---|
| private final BibEntry mergedEntry Record Component accessed by mergedEntry(). | |
| updatedFields | back to summary |
|---|---|
| private final Set<Field> updatedFields Record Component accessed by updatedFields(). | |
| FetcherResult | back to summary |
|---|---|
| public FetcherResult(BibEntry entryFromLibrary, BibEntry mergedEntry, boolean hasChanges, Set<Field> updatedFields) | |
| entryFromLibrary | back to summary |
|---|---|
| public BibEntry entryFromLibrary() Record Component getter of entryFromLibrary. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hasChanges | back to summary |
|---|---|
| public boolean hasChanges() Record Component getter of hasChanges. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| mergedEntry | back to summary |
|---|---|
| public BibEntry mergedEntry() Record Component getter of mergedEntry. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| updatedFields | back to summary |
|---|---|
| public Set Record Component getter of updatedFields. | |