public interface EntitySelector extends ListIterableSelector<Object>
PlanningEntity
annotated class.AbstractEntitySelector
,
FromSolutionEntitySelector
Modifier and Type | Method and Description |
---|---|
Iterator<Object> |
endingIterator()
If
Selector.isNeverEnding() is true, then Iterable.iterator() will never end. |
EntityDescriptor |
getEntityDescriptor() |
getSize
getCacheType, isCountable, isNeverEnding
phaseEnded, phaseStarted, stepEnded, stepStarted
solvingEnded, solvingStarted
listIterator, listIterator
forEach, iterator, spliterator
EntityDescriptor getEntityDescriptor()
Iterator<Object> endingIterator()
Selector.isNeverEnding()
is true, then Iterable.iterator()
will never end.
This returns an ending Iterator
, that tries to match Iterable.iterator()
as much as possible,
but returns each distinct element only once and returns every element that might possibly be selected
and therefore it might not respect the configuration of this EntitySelector
entirely.Iterable.iterator()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.