Record Class SolutionDescriptor.SolutionInitializationStatistics
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.solution.descriptor.SolutionDescriptor.SolutionInitializationStatistics
- Enclosing class:
- SolutionDescriptor<Solution_>
public static record SolutionDescriptor.SolutionInitializationStatistics(int genuineEntityCount, int shadowEntityCount, int uninitializedEntityCount, int uninitializedVariableCount, int unassignedValueCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSolutionInitializationStatistics(int genuineEntityCount, int shadowEntityCount, int uninitializedEntityCount, int uninitializedVariableCount, int unassignedValueCount) Creates an instance of aSolutionInitializationStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegenuineEntityCountrecord component.intfinal inthashCode()Returns a hash code value for this object.booleanintReturns the value of theshadowEntityCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunassignedValueCountrecord component.intReturns the value of theuninitializedEntityCountrecord component.intReturns the value of theuninitializedVariableCountrecord component.
-
Constructor Details
-
SolutionInitializationStatistics
public SolutionInitializationStatistics(int genuineEntityCount, int shadowEntityCount, int uninitializedEntityCount, int uninitializedVariableCount, int unassignedValueCount) Creates an instance of aSolutionInitializationStatisticsrecord class.- Parameters:
genuineEntityCount- the value for thegenuineEntityCountrecord componentshadowEntityCount- the value for theshadowEntityCountrecord componentuninitializedEntityCount- the value for theuninitializedEntityCountrecord componentuninitializedVariableCount- the value for theuninitializedVariableCountrecord componentunassignedValueCount- the value for theunassignedValueCountrecord component
-
-
Method Details
-
getInitCount
public int getInitCount() -
isInitialized
public boolean isInitialized() -
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. All components in this record class are compared with '=='. -
genuineEntityCount
public int genuineEntityCount()Returns the value of thegenuineEntityCountrecord component.- Returns:
- the value of the
genuineEntityCountrecord component
-
shadowEntityCount
public int shadowEntityCount()Returns the value of theshadowEntityCountrecord component.- Returns:
- the value of the
shadowEntityCountrecord component
-
uninitializedEntityCount
public int uninitializedEntityCount()Returns the value of theuninitializedEntityCountrecord component.- Returns:
- the value of the
uninitializedEntityCountrecord component
-
uninitializedVariableCount
public int uninitializedVariableCount()Returns the value of theuninitializedVariableCountrecord component.- Returns:
- the value of the
uninitializedVariableCountrecord component
-
unassignedValueCount
public int unassignedValueCount()Returns the value of theunassignedValueCountrecord component.- Returns:
- the value of the
unassignedValueCountrecord component
-