| 程序包 | 说明 |
|---|---|
| cn.hutool.core.lang |
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
|
| cn.hutool.core.util |
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
|
| 限定符和类型 | 方法和说明 |
|---|---|
WeightRandom<T> |
WeightRandom.add(WeightRandom.WeightObj<T> weightObj)
增加对象权重
|
WeightRandom<T> |
WeightRandom.add(WeightRandom.WeightObj<T> weightObj)
增加对象权重
|
| 构造器和说明 |
|---|
WeightRandom(WeightRandom.WeightObj<T> weightObj)
构造
|
WeightRandom(WeightRandom.WeightObj<T> weightObj)
构造
|
WeightRandom(WeightRandom.WeightObj<T>[] weightObjs)
构造
|
WeightRandom(WeightRandom.WeightObj<T>[] weightObjs)
构造
|
| 构造器和说明 |
|---|
WeightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
构造
|
WeightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> WeightRandom<T> |
RandomUtil.weightRandom(WeightRandom.WeightObj<T>[] weightObjs)
带有权重的随机生成器
|
static <T> WeightRandom<T> |
RandomUtil.weightRandom(WeightRandom.WeightObj<T>[] weightObjs)
带有权重的随机生成器
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> WeightRandom<T> |
RandomUtil.weightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
带有权重的随机生成器
|
static <T> WeightRandom<T> |
RandomUtil.weightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
带有权重的随机生成器
|
Copyright © 2022. All rights reserved.