Class Snapshot

java.lang.Object
com.vaadin.signals.impl.TreeRevision
com.vaadin.signals.impl.Snapshot

public class Snapshot extends TreeRevision
An immutable tree revision.
  • Constructor Details

    • Snapshot

      public Snapshot(MutableTreeRevision base)
      Creates a new snapshot from a mutable tree revision.
      Parameters:
      base - the mutable base revision to copy, not null
    • Snapshot

      public Snapshot(Id ownerId, boolean includeMax)
      Creates an empty snapshot. The snapshot contains an empty root node with Id.ZERO that is used for tracking signal values and optionally also another empty root node with Id.MAX that is used for tracking metadata.
      Parameters:
      ownerId - the id of the tree owner, not null
      includeMax - flag indicating whether an additional root node should be created for tracking metadata