E
- The type of weighted objectW
- The type of extended weighted collection valueI
- The type of immutable weighted collection valuepublic interface WeightedCollectionValue<E extends WeightedObject<?>,W extends WeightedCollectionValue<E,W,I>,I extends ImmutableWeightedCollectionValue<E,I,W>> extends CollectionValue<E,WeightedCollection<E>,W,I>
CollectionValue
that is backed by
a WeightedCollection
.Modifier and Type | Method and Description |
---|---|
E |
get(Random random)
Selects a random value from this list based on their weight.
|
add, addAll, asImmutable, contains, containsAll, filter, getAll, isEmpty, remove, removeAll, removeAll, set, size, transform
exists, get, getDefault, getDirect, getKey
forEach, iterator, spliterator