public class BooleanValueRange extends AbstractCountableValueRange<Boolean>
| Constructor and Description |
|---|
BooleanValueRange() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Boolean value) |
Iterator<Boolean> |
createOriginalIterator()
Select the elements in original (natural) order.
|
Iterator<Boolean> |
createRandomIterator(Random workingRandom)
Select in random order, but without shuffling the elements.
|
Boolean |
get(long index)
Used by uniform random selection in a composite or nullable CountableValueRange.
|
long |
getSize()
Used by uniform random selection in a composite or nullable CountableValueRange.
|
String |
toString() |
isEmptypublic long getSize()
CountableValueRangeCountableValueRange, always >= 0public boolean contains(Boolean value)
value - sometimes nullpublic Boolean get(long index)
CountableValueRangeindex - always < CountableValueRange.getSize()PlanningVariable.nullable() is true)public Iterator<Boolean> createOriginalIterator()
CountableValueRangepublic Iterator<Boolean> createRandomIterator(Random workingRandom)
ValueRangeworkingRandom - never null, the Random to use when any random number is needed,
so EnvironmentMode.REPRODUCIBLE works correctly. RandomUtils can be useful too.Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.