Package | Description |
---|---|
org.dromara.hutool.core.lang.selector | |
org.dromara.hutool.core.util |
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
|
Modifier and Type | Class and Description |
---|---|
class |
SmoothWeightObj<T>
平滑权重对象
|
Modifier and Type | Method and Description |
---|---|
WeightRandomSelector<T> |
WeightRandomSelector.add(WeightObj<T> weightObj)
增加对象权重
|
SmoothWeightSelector<T> |
SmoothWeightSelector.add(WeightObj<T> weightObj)
增加权重对象
|
Constructor and Description |
---|
WeightRandomSelector(WeightObj<T> weightObj)
构造
|
WeightRandomSelector(WeightObj<T>[] weightObjs)
构造
|
Constructor and Description |
---|
SmoothWeightSelector(Iterable<? extends WeightObj<T>> weightObjList)
构造
|
WeightRandomSelector(Iterable<WeightObj<T>> weightObjs)
构造
|
Modifier and Type | Method and Description |
---|---|
static <T> WeightRandomSelector<T> |
RandomUtil.weightRandom(WeightObj<T>[] weightObjs)
带有权重的随机生成器
|
Modifier and Type | Method and Description |
---|---|
static <T> WeightRandomSelector<T> |
RandomUtil.weightRandom(Iterable<WeightObj<T>> weightObjs)
带有权重的随机生成器
|
Copyright © 2025. All rights reserved.