public interface CountableValueRange<T> extends ValueRange<T>
ValueRange
that is ending. Therefore, it has a discrete (as in non-continuous) range.
An implementation must extend AbstractCountableValueRange
to ensure backwards compatibility in future versions.
ValueRangeFactory
,
ValueRange
,
AbstractCountableValueRange
Modifier and Type | Method and Description |
---|---|
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.
|
contains, createRandomIterator, isEmpty
long getSize()
CountableValueRange
, always >= 0
T get(long index)
index
- always <
getSize()
PlanningVariable.nullable()
is true)Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.