Interface NumericIdSequences
-
- All Superinterfaces:
IdSequences<Number>
- All Known Implementing Classes:
CachingNumericIdSequences
public interface NumericIdSequences extends IdSequences<Number>
Provides with new values for home-made autoincrementing identifiers.- Since:
- 9.0
- Author:
- Leonid Bushuev from JetBrains
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NumericIdSequence<? extends Number>
getSequence(String domainName)
Provides with the sequence for the specified domain.Number
nextOne(String domain)
Produces and returns one next identifier of the specified domain.
-
-
-
Method Detail
-
getSequence
@NotNull NumericIdSequence<? extends Number> getSequence(@NotNull String domainName) throws UnknownDomainException
Provides with the sequence for the specified domain.- Specified by:
getSequence
in interfaceIdSequences<Number>
- Parameters:
domainName
- domain.- Returns:
- the sequence for this domain.
- Throws:
UnknownDomainException
-
nextOne
@NotNull Number nextOne(@NotNull String domain) throws UnknownDomainException
Produces and returns one next identifier of the specified domain.- Specified by:
nextOne
in interfaceIdSequences<Number>
- Parameters:
domain
- domain.- Returns:
- the new identifier.
- Throws:
UnknownDomainException
-
-