Package me.ahoo.cosid

Interface PartsIdGenerator

All Known Implementing Classes:
TimeBasedGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PartsIdGenerator
Generates ids as their parts, for layouts wider than a long such as the 80-bit CosId; implemented by TimeBasedGenerator, and the view of a cosid80 generator.
  • Method Summary

    Modifier and Type
    Method
    Description
    The parts of the next id; thread-safe, never the same parts twice.
  • Method Details

    • nextParts

      IdParts nextParts()
      The parts of the next id; thread-safe, never the same parts twice.
      Returns:
      the parts