|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CountableValueRange<T>
An implementation must extend
AbstractCountableValueRange
to ensure backwards compatibility in future versions.
ValueRangeFactory
,
ValueRange
,
AbstractCountableValueRange
Method Summary | |
---|---|
Iterator<T> |
createOriginalIterator()
Select the elements in original (natural) order. |
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 interface org.optaplanner.core.api.domain.valuerange.ValueRange |
---|
contains, createRandomIterator |
Method Detail |
---|
long getSize()
CountableValueRange
, always >= 0T get(long index)
index
- always < getSize()
PlanningVariable.nullable()
is true)Iterator<T> createOriginalIterator()
|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |