Interface CollectionChange
- All Known Implementing Classes:
CollectionChange.Addition, CollectionChange.Clear, CollectionChange.PositionChange, CollectionChange.Removal, CollectionChange.Replacement
@Incubating(since="8.0",
group="collection-delta")
public sealed interface CollectionChange
permits CollectionChange.Addition, CollectionChange.Removal, CollectionChange.Replacement, CollectionChange.PositionChange, CollectionChange.Clear
One ordered semantic change within a CollectionDelta.
Snapshot and current positions are deliberately distinct. A position may be a list index, map key, collection identifier, or an explicit deferred-position handle supplied by a specialized producer.
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn element newly present at its current position.static final recordA bulk clear whose individual persisted removals are not enumerated.static final recordAn element retained while its semantic position changed.static final recordAn element no longer present at its snapshot position.static final recordA value replaced while retaining its semantic row identity.