Module org.maxicp
Package org.maxicp.search.blackbox
Record Class FragmentSelector.FragmentSelectionContext
java.lang.Object
java.lang.Record
org.maxicp.search.blackbox.FragmentSelector.FragmentSelectionContext
- Enclosing interface:
FragmentSelector
-
Constructor Summary
ConstructorsConstructorDescriptionFragmentSelectionContext(List<Integer> decisionVarIndices, int freezeRatePercent, int iteration) Creates an instance of aFragmentSelectionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecisionVarIndicesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefreezeRatePercentrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FragmentSelectionContext
public FragmentSelectionContext(List<Integer> decisionVarIndices, int freezeRatePercent, int iteration) Creates an instance of aFragmentSelectionContextrecord class.- Parameters:
decisionVarIndices- the value for thedecisionVarIndicesrecord componentfreezeRatePercent- the value for thefreezeRatePercentrecord componentiteration- the value for theiterationrecord component
-
-
Method Details
-
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 '=='. -
decisionVarIndices
Returns the value of thedecisionVarIndicesrecord component.- Returns:
- the value of the
decisionVarIndicesrecord component
-
freezeRatePercent
public int freezeRatePercent()Returns the value of thefreezeRatePercentrecord component.- Returns:
- the value of the
freezeRatePercentrecord component
-
iteration
public int iteration()Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-