E - The type of weighted objectpublic interface WeightedCollectionValue<E> extends CollectionValue<TableEntry<E>,WeightedTable<E>,WeightedCollectionValue<E>,ImmutableWeightedCollectionValue<E>>
CollectionValue that is backed by
a WeightedTable.| Modifier and Type | Method and Description |
|---|---|
List<E> |
get(Random random)
Selects a random value from this list based on their weight.
|
add, addAll, asImmutable, contains, containsAll, copy, filter, getAll, isEmpty, remove, removeAll, removeAll, set, size, transformexists, get, getDefault, getDirect, getKeyforEach, iterator, spliterator