Class PersistableIntIdSequence
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.PersistableIntIdSequence
-
- All Implemented Interfaces:
IdSequence<Integer>,NumericIdSequence<Integer>
public class PersistableIntIdSequence extends Object implements NumericIdSequence<Integer>
-
-
Constructor Summary
Constructors Constructor Description PersistableIntIdSequence(PersistableLongIdSequence longIdSequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerlastOne()Checks the last used identifier.IntegernextOne()Produces the new identifier.Interval<Integer>nextRange(int count)Produces and returns a range of identifiers.
-
-
-
Constructor Detail
-
PersistableIntIdSequence
public PersistableIntIdSequence(@NotNull PersistableLongIdSequence longIdSequence)
-
-
Method Detail
-
nextOne
@NotNull public Integer nextOne()
Description copied from interface:NumericIdSequenceProduces the new identifier.- Specified by:
nextOnein interfaceIdSequence<Integer>- Specified by:
nextOnein interfaceNumericIdSequence<Integer>- Returns:
- the new identifier.
-
nextRange
@NotNull public Interval<Integer> nextRange(int count)
Description copied from interface:NumericIdSequenceProduces and returns a range of identifiers.- Specified by:
nextRangein interfaceNumericIdSequence<Integer>- Parameters:
count- how many identifiers to produce.- Returns:
- a range of new identifiers.
-
lastOne
@NotNull public Integer lastOne()
Description copied from interface:NumericIdSequenceChecks the last used identifier.- Specified by:
lastOnein interfaceNumericIdSequence<Integer>- Returns:
- the last used value.
-
-