Interface VersionedObject<T>

All Known Subinterfaces:
CheckboxModel, DocumentModel, GridModel<T>, RangedValueModel, SequenceModel<T>, ValueEditor<T>
All Known Implementing Classes:
Action, ArrayGridModel, CallMethodAction, DefaultCheckboxModel, DefaultDocumentModel, DefaultRangedValueModel, DocumentModelFilter, EmptyAction, GridModelWrapper, ListBox.GridModelDelegate, ListModel, RollupPanel.OpenCheckboxModel, SelectionModel, SequenceModels.AbstractSequence, SequenceModels.DoubleSequence, SequenceModels.ListSequence, SequenceModels.RangedSequence, TextFieldValueEditor, VersionedHolder, VersionedList, VersionedSet

public interface VersionedObject<T>
Implemented by objects that provided a versioned view of a value. Callers can create VersionedReferences and then easily detect when the value has changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new VersionedReference that can be used to monitor when this object changes.
    Returns the object that is being versioned.
    long
    Returns the current version of the versioned object.
  • Method Details

    • getVersion

      long getVersion()
      Returns the current version of the versioned object.
    • getObject

      T getObject()
      Returns the object that is being versioned.
    • createReference

      VersionedReference<T> createReference()
      Creates a new VersionedReference that can be used to monitor when this object changes.