Class RandomBroIdPart

java.lang.Object
uno.xifan.id.generator.broid.part.RandomBroIdPart
All Implemented Interfaces:
BroIdPart

public class RandomBroIdPart extends Object implements BroIdPart
BroId生成器的随机部分实现

该类负责生成BroId中的随机位序列。通过指定的随机数生成器和位数, 生成指定长度的随机布尔序列。

Author:
稀饭科技
  • Constructor Details

    • RandomBroIdPart

      public RandomBroIdPart()
  • Method Details

    • next

      public List<Boolean> next()
      Description copied from interface: BroIdPart
      生成下一个值
      Specified by:
      next in interface BroIdPart
      Returns:
      生成的List<Boolean>对象