Interface NumericIdSequence<N extends Comparable<N>>

    • Method Detail

      • nextOne

        @NotNull
        N nextOne()
        Produces the new identifier.
        Specified by:
        nextOne in interface IdSequence<N extends Comparable<N>>
        Returns:
        the new identifier.
      • nextRange

        @NotNull
        Interval<N> nextRange​(int count)
        Produces and returns a range of identifiers.
        Parameters:
        count - how many identifiers to produce.
        Returns:
        a range of new identifiers.
      • lastOne

        @NotNull
        N lastOne()
        Checks the last used identifier.
        Returns:
        the last used value.