Class AbstractCountableValueRange<T>
java.lang.Object
ai.timefold.solver.core.impl.domain.valuerange.AbstractCountableValueRange<T>
- All Implemented Interfaces:
CountableValueRange<T>,ValueRange<T>,SortableValueRange<T>
- Direct Known Subclasses:
BigDecimalValueRange,BigIntegerValueRange,BooleanValueRange,CompositeCountableValueRange,EmptyValueRange,IntValueRange,ListValueRange,LongValueRange,NullAllowingCountableValueRange,SetValueRange,TemporalValueRange
@NullMarked
public abstract class AbstractCountableValueRange<T>
extends Object
implements CountableValueRange<T>, SortableValueRange<T>
Abstract superclass for
CountableValueRange (and therefore ValueRange).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()In aCountableValueRange, this must be consistent withCountableValueRange.getSize().sort(ValueRangeSorter<T> sorter) The sorting operation copies the current value range and sorts it using the provided sorter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.api.domain.valuerange.CountableValueRange
createOriginalIterator, get, getSizeMethods inherited from interface ai.timefold.solver.core.api.domain.valuerange.ValueRange
contains, createRandomIterator
-
Constructor Details
-
AbstractCountableValueRange
public AbstractCountableValueRange()
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:ValueRangeIn aCountableValueRange, this must be consistent withCountableValueRange.getSize().- Specified by:
isEmptyin interfaceValueRange<T>- Returns:
- true if the range is empty
-
sort
Description copied from interface:SortableValueRangeThe sorting operation copies the current value range and sorts it using the provided sorter.- Specified by:
sortin interfaceSortableValueRange<T>- Parameters:
sorter- never null, the value range sorter- Returns:
- A new instance of the value range, with the data sorted.
-