Record Class AutoconfigRunState.IraceProgress
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.service.AutoconfigRunState.IraceProgress
- Enclosing class:
AutoconfigRunState
public static record AutoconfigRunState.IraceProgress(Integer iteration, int eliteCount, Instant updatedAt, boolean finalSnapshot, IraceProgressDetails progress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIraceProgress(Integer iteration, int eliteCount, Instant updatedAt, boolean finalSnapshot, IraceProgressDetails progress) Creates an instance of aIraceProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theeliteCountrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefinalSnapshotrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theiterationrecord component.progress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
IraceProgress
public IraceProgress(Integer iteration, int eliteCount, Instant updatedAt, boolean finalSnapshot, IraceProgressDetails progress) Creates an instance of aIraceProgressrecord class.- Parameters:
iteration- the value for theiterationrecord componenteliteCount- the value for theeliteCountrecord componentupdatedAt- the value for theupdatedAtrecord componentfinalSnapshot- the value for thefinalSnapshotrecord componentprogress- the value for theprogressrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
iteration
Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-
eliteCount
public int eliteCount()Returns the value of theeliteCountrecord component.- Returns:
- the value of the
eliteCountrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
finalSnapshot
public boolean finalSnapshot()Returns the value of thefinalSnapshotrecord component.- Returns:
- the value of the
finalSnapshotrecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-