Interface NucleusSequence
- All Known Implementing Classes:
NucleusSequenceImpl
public interface NucleusSequence
Sequence of values.
-
Method Summary
Modifier and TypeMethodDescriptionvoidallocate(int amount) Method to allocate an amount of values.current()Accessor for the current value object.longAccessor for the current value.getName()Accessor for the name of the sequence.next()Accessor for the next value object.longAccessor for the next value.
-
Method Details
-
allocate
void allocate(int amount) Method to allocate an amount of values.- Parameters:
amount- The amount
-
current
-
currentValue
long currentValue()Accessor for the current value.- Returns:
- Current value
-
getName
-
next
-
nextValue
long nextValue()Accessor for the next value.- Returns:
- next value
-