| 程序包 | 说明 |
|---|---|
| org.dromara.hutool.core.lang.selector |
选择器相关封装,包括:
WeightRandomSelector
|
| 限定符和类型 | 方法和说明 |
|---|---|
SmoothWeightSelector<T> |
SmoothWeightSelector.add(T obj,
int weight)
增加对象
|
SmoothWeightSelector<T> |
SmoothWeightSelector.add(WeightObj<T> weightObj)
增加权重对象
|
static <T> SmoothWeightSelector<T> |
SmoothWeightSelector.of()
创建平滑加权获取器
|
Copyright © 2024. All rights reserved.