| 程序包 | 说明 |
|---|---|
| cn.hutool.core.lang |
| 限定符和类型 | 方法和说明 |
|---|---|
WeightRandom<T> |
WeightRandom.add(WeightRandom.WeightObj<T> weightObj)
增加对象权重
|
| 构造器和说明 |
|---|
WeightRandom(WeightRandom.WeightObj<T> weightObj)
构造
|
WeightRandom(WeightRandom.WeightObj<T>[] weightObjs)
构造
|
| 构造器和说明 |
|---|
WeightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
构造
|
Copyright © 2018. All rights reserved.