public interface ValueSelector extends Selector
ValueRangeProvider for a PlanningVariable annotated property.AbstractValueSelector| Modifier and Type | Method and Description |
|---|---|
Iterator<Object> |
endingIterator(Object entity)
If
Selector.isNeverEnding() is true, then iterator(Object) will never end. |
long |
getSize(Object entity)
Similar to
IterableSelector.getSize(), but requires an entity. |
GenuineVariableDescriptor |
getVariableDescriptor() |
Iterator<Object> |
iterator(Object entity)
Similar to
Iterable.iterator(), but requires an entity. |
getCacheType, isCountable, isNeverEndingphaseEnded, phaseStarted, stepEnded, stepStartedsolvingEnded, solvingStartedGenuineVariableDescriptor getVariableDescriptor()
long getSize(Object entity)
IterableSelector.getSize(), but requires an entity.entity - never nullSelector, always >= 0IllegalStateException - if Selector.isCountable() returns false,
but not if only Selector.isNeverEnding() returns trueIterator<Object> iterator(Object entity)
Iterable.iterator(), but requires an entity.entity - never nullIterator<Object> endingIterator(Object entity)
Selector.isNeverEnding() is true, then iterator(Object) will never end.
This returns an ending Iterator, that tries to match iterator(Object) as much as possible,
but return each distinct element only once
and therefore it might not respect the configuration of this ValueSelector entirely.entity - never nulliterator(Object)Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.