Record Class ExitStatus
java.lang.Object
java.lang.Record
org.springframework.batch.core.repository.persistence.ExitStatus
- Since:
- 5.2.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionExitStatus(String exitCode, String exitDescription) Creates an instance of aExitStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exitCode()Returns the value of theexitCoderecord component.Returns the value of theexitDescriptionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExitStatus
Creates an instance of aExitStatusrecord class.- Parameters:
exitCode- the value for theexitCoderecord componentexitDescription- the value for theexitDescriptionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
exitCode
Returns the value of theexitCoderecord component.- Returns:
- the value of the
exitCoderecord component
-
exitDescription
Returns the value of theexitDescriptionrecord component.- Returns:
- the value of the
exitDescriptionrecord component
-