Record Class SubList
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.heuristic.selector.list.SubList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefromIndexrecord component.intfinal inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.rebase(ScoreDirector<?> destinationScoreDirector) toString()Returns a string representation of this record class.
-
Constructor Details
-
SubList
Creates an instance of aSubListrecord class.- Parameters:
entity- the value for theentityrecord componentfromIndex- the value for thefromIndexrecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
getToIndex
public int getToIndex() -
rebase
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
fromIndex
public int fromIndex()Returns the value of thefromIndexrecord component.- Returns:
- the value of the
fromIndexrecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-