|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optaplanner.core.impl.domain.valuerange.AbstractCountableValueRange<T>
org.optaplanner.core.impl.domain.valuerange.buildin.composite.EmptyValueRange<T>
public class EmptyValueRange<T>
Constructor Summary | |
---|---|
EmptyValueRange()
|
Method Summary | |
---|---|
boolean |
contains(T value)
|
Iterator<T> |
createOriginalIterator()
Select the elements in original (natural) order. |
Iterator<T> |
createRandomIterator(Random workingRandom)
Select in random order, without shuffling the elements. |
T |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyValueRange()
Method Detail |
---|
public long getSize()
CountableValueRange
CountableValueRange
, always >= 0public T get(long index)
CountableValueRange
index
- always < CountableValueRange.getSize()
PlanningVariable.nullable()
is true)public boolean contains(T value)
value
- sometimes null
public Iterator<T> createOriginalIterator()
CountableValueRange
public Iterator<T> createRandomIterator(Random workingRandom)
ValueRange
workingRandom
- never null, the Random
to use when any random number is needed,
so EnvironmentMode.REPRODUCIBLE
works correctly
|
OptaPlanner core 6.2.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |