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 Integer
lastOne()
Checks the last used identifier.Integer
nextOne()
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:NumericIdSequence
Produces the new identifier.- Specified by:
nextOne
in interfaceIdSequence<Integer>
- Specified by:
nextOne
in interfaceNumericIdSequence<Integer>
- Returns:
- the new identifier.
-
nextRange
@NotNull public Interval<Integer> nextRange(int count)
Description copied from interface:NumericIdSequence
Produces and returns a range of identifiers.- Specified by:
nextRange
in interfaceNumericIdSequence<Integer>
- Parameters:
count
- how many identifiers to produce.- Returns:
- a range of new identifiers.
-
lastOne
@NotNull public Integer lastOne()
Description copied from interface:NumericIdSequence
Checks the last used identifier.- Specified by:
lastOne
in interfaceNumericIdSequence<Integer>
- Returns:
- the last used value.
-
-