Class AbstractValueRangeDescriptor<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor<Solution_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Implemented Interfaces:
ValueRangeDescriptor<Solution_>
- Direct Known Subclasses:
AbstractFromPropertyValueRangeDescriptor,CompositeValueRangeDescriptor
public abstract class AbstractValueRangeDescriptor<Solution_> extends Object implements ValueRangeDescriptor<Solution_>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanaddNullInValueRangeprotected GenuineVariableDescriptor<Solution_>variableDescriptor
-
Constructor Summary
Constructors Constructor Description AbstractValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> ValueRange<T>doNullInValueRangeWrapping(ValueRange<T> valueRange)GenuineVariableDescriptor<Solution_>getVariableDescriptor()booleanmightContainEntity()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.optaplanner.core.impl.domain.valuerange.descriptor.ValueRangeDescriptor
extractValueRange, isCountable, isEntityIndependent
-
-
-
-
Field Detail
-
variableDescriptor
protected final GenuineVariableDescriptor<Solution_> variableDescriptor
-
addNullInValueRange
protected final boolean addNullInValueRange
-
-
Constructor Detail
-
AbstractValueRangeDescriptor
public AbstractValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange)
-
-
Method Detail
-
getVariableDescriptor
public GenuineVariableDescriptor<Solution_> getVariableDescriptor()
- Specified by:
getVariableDescriptorin interfaceValueRangeDescriptor<Solution_>- Returns:
- never null
-
mightContainEntity
public boolean mightContainEntity()
- Specified by:
mightContainEntityin interfaceValueRangeDescriptor<Solution_>- Returns:
- true if the
ValueRangemight contain a planning entity instance (not necessarily of the same entity class as this entity class of this descriptor.
-
doNullInValueRangeWrapping
protected <T> ValueRange<T> doNullInValueRangeWrapping(ValueRange<T> valueRange)
-
-