public class DoubleValueRange extends AbstractUncountableValueRange<Double>
Constructor and Description |
---|
DoubleValueRange(double from,
double to) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Double value) |
Iterator<Double> |
createRandomIterator(Random workingRandom)
Select in random order, but without shuffling the elements.
|
boolean |
isEmpty()
In a
CountableValueRange , this must be consistent with CountableValueRange.getSize() . |
String |
toString() |
public DoubleValueRange(double from, double to)
from
- inclusive minimumto
- exclusive maximum, >= from
public boolean isEmpty()
ValueRange
CountableValueRange
, this must be consistent with CountableValueRange.getSize()
.public boolean contains(Double value)
value
- sometimes nullpublic Iterator<Double> createRandomIterator(Random workingRandom)
ValueRange
workingRandom
- never null, the Random
to use when any random number is needed,
so EnvironmentMode.REPRODUCIBLE
works correctly. RandomUtils
can be useful too.Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.