Package com.simsilica.lemur
Class SequenceModels.AbstractSequence<T>
java.lang.Object
com.simsilica.lemur.SequenceModels.AbstractSequence<T>
- All Implemented Interfaces:
VersionedObject<T>
,SequenceModel<T>
- Direct Known Subclasses:
SequenceModels.DoubleSequence
,SequenceModels.ListSequence
,SequenceModels.RangedSequence
- Enclosing class:
SequenceModels
public abstract static class SequenceModels.AbstractSequence<T>
extends Object
implements SequenceModel<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new VersionedReference that can be used to monitor when this object changes.long
Returns the current version of the versioned object.protected void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.simsilica.lemur.SequenceModel
getNextObject, getObject, getPreviousObject, setObject
-
Constructor Details
-
AbstractSequence
public AbstractSequence()
-
-
Method Details
-
incrementVersion
protected void incrementVersion() -
getVersion
public long getVersion()Description copied from interface:VersionedObject
Returns the current version of the versioned object.- Specified by:
getVersion
in interfaceVersionedObject<T>
-
createReference
Description copied from interface:VersionedObject
Creates a new VersionedReference that can be used to monitor when this object changes.- Specified by:
createReference
in interfaceVersionedObject<T>
-
toString
-