Interface IdSequences<D>
-
- All Known Subinterfaces:
NumericIdSequences
,ProjectIdProvider
- All Known Implementing Classes:
CachingNumericIdSequences
,CombainedIdSequences
,ProjectIdProviderImpl
public interface IdSequences<D>
Provides with new values for different types of identifiers.- Since:
- 9.0
- Author:
- Leonid Bushuev from JetBrains
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdSequence<? extends D>
getSequence(String domainName)
Provides with the sequence for the specified domain.D
nextOne(String domainName)
Produces and returns one next identifier of the specified domain.
-
-
-
Method Detail
-
getSequence
@NotNull IdSequence<? extends D> getSequence(@NotNull String domainName) throws UnknownDomainException
Provides with the sequence for the specified domain.- Parameters:
domainName
- domain.- Returns:
- the sequence for this domain.
- Throws:
UnknownDomainException
-
nextOne
@NotNull D nextOne(@NotNull String domainName) throws UnknownDomainException
Produces and returns one next identifier of the specified domain.- Parameters:
domain
- domain.- Returns:
- the new identifier.
- Throws:
UnknownDomainException
-
-