Record Class TurAssetTrainingStatus
java.lang.Object
java.lang.Record
com.viglet.turing.service.asset.TurAssetTrainingStatus
public record TurAssetTrainingStatus(TurAssetTrainingState state, int totalCount, int processedCount, int errorCount, String startedAt, String completedAt, String errorMessage)
extends Record
- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionTurAssetTrainingStatus(TurAssetTrainingState state, int totalCount, int processedCount, int errorCount, String startedAt, String completedAt, String errorMessage) Creates an instance of aTurAssetTrainingStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCountrecord component.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.static TurAssetTrainingStatusidle()intReturns the value of theprocessedCountrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
TurAssetTrainingStatus
public TurAssetTrainingStatus(TurAssetTrainingState state, int totalCount, int processedCount, int errorCount, String startedAt, String completedAt, String errorMessage) Creates an instance of aTurAssetTrainingStatusrecord class.- Parameters:
state- the value for thestaterecord componenttotalCount- the value for thetotalCountrecord componentprocessedCount- the value for theprocessedCountrecord componenterrorCount- the value for theerrorCountrecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
idle
-
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. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
processedCount
public int processedCount()Returns the value of theprocessedCountrecord component.- Returns:
- the value of the
processedCountrecord component
-
errorCount
public int errorCount()Returns the value of theerrorCountrecord component.- Returns:
- the value of the
errorCountrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-