Record Class AutoconfigRunState.EliteSnapshot
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.service.AutoconfigRunState.EliteSnapshot
- Enclosing class:
AutoconfigRunState
-
Constructor Summary
ConstructorsConstructorDescriptionEliteSnapshot(String runId, Integer iteration, Instant updatedAt, boolean finalSnapshot, List<AutoconfigRunState.EliteView> elites) Creates an instance of aEliteSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelites()Returns the value of theelitesrecord 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.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
EliteSnapshot
public EliteSnapshot(String runId, Integer iteration, Instant updatedAt, boolean finalSnapshot, List<AutoconfigRunState.EliteView> elites) Creates an instance of aEliteSnapshotrecord class.- Parameters:
runId- the value for therunIdrecord componentiteration- the value for theiterationrecord componentupdatedAt- the value for theupdatedAtrecord componentfinalSnapshot- the value for thefinalSnapshotrecord componentelites- the value for theelitesrecord 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. -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
iteration
Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord 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
-
elites
Returns the value of theelitesrecord component.- Returns:
- the value of the
elitesrecord component
-