E
- The type of weighted objectM
- The type of extended weighted collection valueI
- The type of immutable weighted collection valuepublic interface ImmutableWeightedCollectionValue<E extends WeightedObject<?>,I extends ImmutableWeightedCollectionValue<E,I,M>,M extends WeightedCollectionValue<E,M,I>> extends ImmutableCollectionValue<E,WeightedCollection<E>,I,M>
ImmutableCollectionValue
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.
|
asMutable, contains, containsAll, getAll, isEmpty, size, transform, with, with, withAll, without, withoutAll, withoutAll