FieldChangedEvent is fired when a field of BibEntry has been modified, removed or added.
A value is null when the field had none: before the field was added, or after it was removed.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Field | |
| private final @Nullable String | |
| private final @Nullable String |
| Access | Constructor and Description |
|---|---|
| public | FieldChangedEvent(EntriesEventSource
source of this event source, BibEntry Affected BibEntry object bibEntry, Field Name of field which has been changed field, @Nullable String old field value oldValue, @Nullable String new field value newValue)
|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| private static int | computeMajorCharacterChange(@Nullable String oldValue, @Nullable String newValue)
An absent value counts as empty: adding a value changes as many characters as it is long. |
| public Field | |
| public @Nullable String | |
| public @Nullable String |
| charactersChangedCount | back to summary |
|---|---|
| private int charactersChangedCount | |
| field | back to summary |
|---|---|
| private final Field field | |
| newValue | back to summary |
|---|---|
| private final @Nullable String newValue | |
| oldValue | back to summary |
|---|---|
| private final @Nullable String oldValue | |
| FieldChangedEvent | back to summary |
|---|---|
| public FieldChangedEvent(EntriesEventSource source, BibEntry bibEntry, Field field, @Nullable String oldValue, @Nullable String newValue) | |
| FieldChangedEvent | back to summary |
|---|---|
| public FieldChangedEvent(BibEntry bibEntry, Field field, @Nullable String oldValue, @Nullable String newValue) | |
| FieldChangedEvent | back to summary |
|---|---|
| public FieldChangedEvent(EntriesEventSource source, FieldChange fieldChange) | |
| FieldChangedEvent | back to summary |
|---|---|
| public FieldChangedEvent(FieldChange fieldChange) | |
| charactersChangedCount | back to summary |
|---|---|
| public int charactersChangedCount() | |
| computeMajorCharacterChange | back to summary |
|---|---|
| private static int computeMajorCharacterChange(@Nullable String oldValue, @Nullable String newValue) An absent value counts as empty: adding a value changes as many characters as it is long. | |
| getField | back to summary |
|---|---|
| public Field getField() | |
| getNewValue | back to summary |
|---|---|
| public @Nullable String getNewValue() | |
| getOldValue | back to summary |
|---|---|
| public @Nullable String getOldValue() | |