@PublicApi public abstract class VersionedDataUpdate extends Object
VersionedDataSource
Modifier | Constructor and Description |
---|---|
protected |
VersionedDataUpdate(DataVersion version) |
Modifier and Type | Method and Description |
---|---|
DataVersion |
getVersion()
Returns the version associated with this update.
|
boolean |
isEmpty()
Returns true if the update is "empty", that is, the caller may keep the state, because it is up-to-date.
|
boolean |
isFull()
Returns true if the update is "full", that is, the caller may drop the current state and replace it fully
with the state from this update.
|
boolean |
isIncremental()
Returns true if the update is "incremental", that is, the caller may get the up-to-date state by applying
a diff, contained in this update, to the previous state they have.
|
protected VersionedDataUpdate(@NotNull DataVersion version)
@NotNull public final DataVersion getVersion()
public boolean isFull()
public boolean isEmpty()
public boolean isIncremental()
Copyright © 2024 Tempo Software. All Rights Reserved.