public interface ValueRange<T>
PlanningVariable. These values might be stored in memory as a
Set), but if the values are numbers, they can also be stored in memory by their bounds to use less memory and provide more opportunities.
CountableValueRange (which extends this interface) whenever possible.
A ValueRange is stateful (unlike a
ValueSelector which is stateless).
Implementations must be immutable.
An implementation must extend
to ensure backwards compatibility in future versions.
|Modifier and Type||Method and Description|
Select in random order, but without shuffling the elements.
CountableValueRange, this must be consistent with
boolean contains(T value)
value- sometimes null
Iterator<T> createRandomIterator(Random workingRandom)
workingRandom- never null, the
Randomto use when any random number is needed, so
RandomUtilscan be useful too.
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.