Interface SequenceModel<T>

All Superinterfaces:
VersionedObject<T>
All Known Implementing Classes:
SequenceModels.AbstractSequence, SequenceModels.DoubleSequence, SequenceModels.ListSequence, SequenceModels.RangedSequence

public interface SequenceModel<T> extends VersionedObject<T>
Represents a model that provides a mutable current value as well as next and previous values. This can be used to implement bounded or unbounded lists of items/numbers that can be iterated forwards or backwards. Useful for things like spin controls or knobs that can be spun indefinitely.
  • Method Details

    • getObject

      T getObject()
      Description copied from interface: VersionedObject
      Returns the object that is being versioned.
      Specified by:
      getObject in interface VersionedObject<T>
    • setObject

      void setObject(T object)
    • getNextObject

      T getNextObject()
    • getPreviousObject

      T getPreviousObject()