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.longReturns the current version of the versioned object.protected voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:VersionedObjectReturns the current version of the versioned object.- Specified by:
getVersionin interfaceVersionedObject<T>
-
createReference
Description copied from interface:VersionedObjectCreates a new VersionedReference that can be used to monitor when this object changes.- Specified by:
createReferencein interfaceVersionedObject<T>
-
toString
-