The idea is: library A and then this patch leads to library B (if this patch is calculated between A and B)
This is a bit different from org., which "just" contains two entries on any field diff, but leaves "computation" on the caller.
Thus, the data structure is different, because here, only the patches are contained, not any source or target.
"patch" in the sense of "commands" to be applied to the source to get the target
| Modifier and Type | Field and Description |
|---|---|
| private final List | deletedEntryKeys
Record Component accessed by deletedEntryKeys(). |
| private final Map | fieldPatches
Record Component accessed by fieldPatches(). contains field-level modifications per citation key. |
| private final List | newEntries
Record Component accessed by newEntries(). entries present in remote but not in base/local |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public static MergePlan | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Map | fieldPatches()
Record Component getter of fieldPatches.
Record Component contains field-level modifications per citation key. |
| public final int | |
| public boolean | |
| public List | newEntries()
Record Component getter of newEntries.
Record Component entries present in remote but not in base/local |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| deletedEntryKeys | back to summary |
|---|---|
| private final List<String> deletedEntryKeys Record Component accessed by deletedEntryKeys(). | |
| fieldPatches | back to summary |
|---|---|
| private final Map<String, Map<Field, String>> fieldPatches Record Component accessed by fieldPatches(). contains field-level modifications per citation key. citationKey -> field -> newValue (null = delete) | |
| newEntries | back to summary |
|---|---|
| private final List<BibEntry> newEntries Record Component accessed by newEntries(). entries present in remote but not in base/local | |
| MergePlan | back to summary |
|---|---|
| public MergePlan(Map<String, Map<Field, String>> fieldPatches, List<BibEntry> newEntries, List<String> deletedEntryKeys) | |
| deletedEntryKeys | back to summary |
|---|---|
| public List Record Component getter of deletedEntryKeys. | |
| empty | back to summary |
|---|---|
| public static MergePlan empty() | |
| 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).
| |
| fieldPatches | back to summary |
|---|---|
| public Map Record Component getter of fieldPatches.
| |
| 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 | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| newEntries | back to summary |
|---|---|
| public List Record Component getter of newEntries.
| |
| 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. | |