public class TableLottery<M> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
TableLottery.TableBlock
圆桌概率计算的参与块
|
static class |
TableLottery.TableBlockAdapter<M> |
static interface |
TableLottery.TableBlockator<T> |
| 构造器和说明 |
|---|
TableLottery() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(String[] args) |
static <T extends TableLottery.TableBlock> |
randomBlock(Collection<T> tableBlocks,
Random seed) |
static <T> T |
randomBlock(Collection<T> tableBlocks,
Random seed,
TableLottery.TableBlockator<T> tableBlockator) |
static <M> M |
randomBlockAdapter(List<TableLottery.TableBlockAdapter<M>> tableBlocks,
Random seed) |
static <T extends TableLottery.TableBlock> |
test(Collection<T> tableBlocks,
int testCount) |
public static <M> M randomBlockAdapter(List<TableLottery.TableBlockAdapter<M>> tableBlocks, Random seed)
public static <T> T randomBlock(Collection<T> tableBlocks, Random seed, TableLottery.TableBlockator<T> tableBlockator)
public static <T extends TableLottery.TableBlock> T randomBlock(Collection<T> tableBlocks, Random seed)
public static <T extends TableLottery.TableBlock> String test(Collection<T> tableBlocks, int testCount)
public static void main(String[] args)
Copyright © 2020. All rights reserved.