Package org.optaplanner.core.impl.domain.valuerange.buildin.composite

Examples of org.optaplanner.core.impl.domain.valuerange.buildin.composite.CompositeCountableValueRange


    public ValueRange<?> extractValueRange(Solution solution, Object entity) {
        List<CountableValueRange<?>> childValueRangeList = new ArrayList<CountableValueRange<?>>(childValueRangeDescriptorList.size());
        for (ValueRangeDescriptor valueRangeDescriptor : childValueRangeDescriptorList) {
            childValueRangeList.add((CountableValueRange) valueRangeDescriptor.extractValueRange(solution, entity));
        }
        return doNullInValueRangeWrapping(new CompositeCountableValueRange(childValueRangeList));
    }
View Full Code Here


        for (ValueRangeDescriptor valueRangeDescriptor : childValueRangeDescriptorList) {
            EntityIndependentValueRangeDescriptor entityIndependentValueRangeDescriptor
                    = (EntityIndependentValueRangeDescriptor) valueRangeDescriptor;
            childValueRangeList.add((CountableValueRange) entityIndependentValueRangeDescriptor.extractValueRange(solution));
        }
        return doNullInValueRangeWrapping(new CompositeCountableValueRange(childValueRangeList));
    }
View Full Code Here

TOP

Related Classes of org.optaplanner.core.impl.domain.valuerange.buildin.composite.CompositeCountableValueRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.