Package com.ultikits.ultitools.abstracts
Class AbstractConfigEntity.ModuleChange
java.lang.Object
com.ultikits.ultitools.abstracts.AbstractConfigEntity.ModuleChange
- Enclosing class:
AbstractConfigEntity
One setting, or one entry of a map setting, the module changed since the last load or save: where it is in the
file, what the module holds there now, and what the framework last read or wrote there.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ObjectThe module's value atpathas plain data, which becomes the setting's baseline once written.private final Fieldprivate EntryPresenceFor an operator's map-entry write made under a condition: whether the entry must already be in the file, or must not be, on the read the gate verifies against (#623);nullwhen presence is not a precondition.private booleanprivate final booleanprivate final Objectprivate AbstractConfigEntity.RawEntryFor a panel edit inside a composite value: the whole value the entity last read there, which the file must still hold at write time (17-65 route change, R3-01);nullwhen the file's value is not a precondition.private Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModuleChange(Field field, List<String> leaf, List<String> path, Object mine, AbstractConfigEntity.RawEntry read) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidAddresses the change where the file being written holds the setting (setting, #612).private voidwriteWhole(Object unit) Writesunit- the whole composite value as last read with only the panel's fields changed - instead of the module's serialization of it, so the untouched fields keep their bytes (#609, R4-I2).
-
Field Details
-
field
-
leaf
-
path
-
present
private boolean present -
value
-
effective
The module's value atpathas plain data, which becomes the setting's baseline once written. It differs fromvalueonly afterwriteWhole(java.lang.Object): the file then holds the read composite with one field changed (y: 64kept as written), while the module holds its own conversion of it (64.0); recording the written text as the baseline would leave the setting "unsaved" and refuse its next module change (PR #611 local Codex run 1). -
readPresent
private final boolean readPresent -
readValue
-
required
For a panel edit inside a composite value: the whole value the entity last read there, which the file must still hold at write time (17-65 route change, R3-01);nullwhen the file's value is not a precondition. -
presence
For an operator's map-entry write made under a condition: whether the entry must already be in the file, or must not be, on the read the gate verifies against (#623);nullwhen presence is not a precondition.
-
-
Constructor Details
-
ModuleChange
-
-
Method Details
-
holds
-
writeWhole
Writesunit- the whole composite value as last read with only the panel's fields changed - instead of the module's serialization of it, so the untouched fields keep their bytes (#609, R4-I2). -
relocate
Addresses the change where the file being written holds the setting (setting, #612).
-