Record Class RuinCompleted
java.lang.Object
java.lang.Record
com.graphhopper.jsprit.core.algorithm.listener.events.RuinCompleted
- Record Components:
iteration- The iteration numbertimestamp- When the event occurredremovedJobs- List of jobs that were removedaffectedRouteCount- Number of routes that were affected
- All Implemented Interfaces:
AlgorithmEvent
public record RuinCompleted(int iteration, long timestamp, List<Job> removedJobs, int affectedRouteCount)
extends Record
implements AlgorithmEvent
Event emitted when the ruin phase completes.
-
Constructor Summary
ConstructorsConstructorDescriptionRuinCompleted(int iteration, long timestamp, List<Job> removedJobs, int affectedRouteCount) Creates an instance of aRuinCompletedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaffectedRouteCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord component.Returns the value of theremovedJobsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuinCompleted
Creates an instance of aRuinCompletedrecord class.- Parameters:
iteration- the value for theiterationrecord componenttimestamp- the value for thetimestamprecord componentremovedJobs- the value for theremovedJobsrecord componentaffectedRouteCount- the value for theaffectedRouteCountrecord 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 '=='. -
iteration
public int iteration()Returns the value of theiterationrecord component.- Specified by:
iterationin interfaceAlgorithmEvent- Returns:
- the value of the
iterationrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAlgorithmEvent- Returns:
- the value of the
timestamprecord component
-
removedJobs
Returns the value of theremovedJobsrecord component.- Returns:
- the value of the
removedJobsrecord component
-
affectedRouteCount
public int affectedRouteCount()Returns the value of theaffectedRouteCountrecord component.- Returns:
- the value of the
affectedRouteCountrecord component
-