Class AbstractValueRangeDescriptor<Solution_>
java.lang.Object
org.optaplanner.core.impl.domain.valuerange.descriptor.AbstractValueRangeDescriptor<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Implemented Interfaces:
ValueRangeDescriptor<Solution_>
- Direct Known Subclasses:
AbstractFromPropertyValueRangeDescriptor
,CompositeValueRangeDescriptor
public abstract class AbstractValueRangeDescriptor<Solution_>
extends Object
implements ValueRangeDescriptor<Solution_>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final GenuineVariableDescriptor<Solution_>
-
Constructor Summary
ConstructorDescriptionAbstractValueRangeDescriptor
(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> ValueRange<T>
doNullInValueRangeWrapping
(ValueRange<T> valueRange) boolean
toString()
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 Details
-
variableDescriptor
-
addNullInValueRange
protected final boolean addNullInValueRange
-
-
Constructor Details
-
AbstractValueRangeDescriptor
public AbstractValueRangeDescriptor(GenuineVariableDescriptor<Solution_> variableDescriptor, boolean addNullInValueRange)
-
-
Method Details
-
getVariableDescriptor
- Specified by:
getVariableDescriptor
in interfaceValueRangeDescriptor<Solution_>
- Returns:
- never null
-
mightContainEntity
public boolean mightContainEntity()- Specified by:
mightContainEntity
in interfaceValueRangeDescriptor<Solution_>
- Returns:
- true if the
ValueRange
might contain a planning entity instance (not necessarily of the same entity class as this entity class of this descriptor.
-
doNullInValueRangeWrapping
-
toString
-