Class VersionedDataUpdate

Object
VersionedDataUpdate
Direct Known Subclasses:
AttributeSubscriptionUpdate, ItemVersionUpdate, VersionedForestUpdate

@PublicApi public abstract class VersionedDataUpdate extends Object
Base class for versioned updates.
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the version associated with this update.
    boolean
    Returns true if the update is "empty", that is, the caller may keep the state, because it is up-to-date.
    boolean
    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
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VersionedDataUpdate

      protected VersionedDataUpdate(@NotNull DataVersion version)
  • Method Details

    • getVersion

      @NotNull public final DataVersion getVersion()
      Returns the version associated with this update.
    • isFull

      public 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.
    • isEmpty

      public boolean isEmpty()
      Returns true if the update is "empty", that is, the caller may keep the state, because it is up-to-date.
    • isIncremental

      public 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.