Record Class DefaultRecommendedFit<Proposition_,Score_ extends Score<Score_>>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.solver.DefaultRecommendedFit<Proposition_,Score_>
- All Implemented Interfaces:
RecommendedAssignment<Proposition_,,Score_> RecommendedFit<Proposition_,,Score_> Comparable<DefaultRecommendedFit<Proposition_,Score_>>
@Deprecated(forRemoval=true,
since="1.15.0")
public record DefaultRecommendedFit<Proposition_,Score_ extends Score<Score_>> (long index, @Nullable Proposition_ proposition, @NonNull ScoreAnalysis<Score_ extends Score<Score_>> scoreAnalysisDiff)
extends Record
implements RecommendedFit<Proposition_,Score_>, Comparable<DefaultRecommendedFit<Proposition_,Score_>>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRecommendedFit(long index, @Nullable Proposition_ proposition, @NonNull ScoreAnalysis<Score_> scoreAnalysisDiff) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aDefaultRecommendedFitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.final booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.longindex()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theindexrecord component.@Nullable Proposition_Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepropositionrecord component.@NonNull ScoreAnalysis<Score_>Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thescoreAnalysisDiffrecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.
-
Constructor Details
-
DefaultRecommendedFit
public DefaultRecommendedFit(long index, @Nullable Proposition_ proposition, @NonNull ScoreAnalysis<Score_> scoreAnalysisDiff) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aDefaultRecommendedFitrecord class.- Parameters:
index- the value for theindexrecord componentproposition- the value for thepropositionrecord componentscoreAnalysisDiff- the value for thescoreAnalysisDiffrecord component
-
-
Method Details
-
compareTo
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
compareToin interfaceComparable<Proposition_>
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.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 '=='. -
index
public long index()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
proposition
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepropositionrecord component.- Specified by:
propositionin interfaceRecommendedAssignment<Proposition_,Score_ extends Score<Score_>> - Returns:
- the value of the
propositionrecord component
-
scoreAnalysisDiff
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thescoreAnalysisDiffrecord component.- Specified by:
scoreAnalysisDiffin interfaceRecommendedAssignment<Proposition_,Score_ extends Score<Score_>> - Returns:
- the value of the
scoreAnalysisDiffrecord component
-
DefaultRecommendedAssignmentinstead.