valueSelector = new ProbabilityValueSelector(valueSelector,
resolvedCacheType, valueProbabilityWeightFactory);
alreadyCached = true;
}
if (resolvedSelectionOrder == SelectionOrder.SHUFFLED) {
valueSelector = new ShufflingValueSelector(valueSelector, resolvedCacheType);
alreadyCached = true;
}
if (resolvedCacheType.isCached() && !alreadyCached) {
// TODO this might be pretty pointless, because FromSolutionPropertyValueSelector caches
valueSelector = new CachingValueSelector(valueSelector, resolvedCacheType,