Package org.springframework.shell.test
Record Class ShellTestClient.ShellRunnerTaskData
java.lang.Object
java.lang.Record
org.springframework.shell.test.ShellTestClient.ShellRunnerTaskData
- Enclosing interface:
- ShellTestClient
public static record ShellTestClient.ShellRunnerTaskData(ShellRunner runner, org.springframework.boot.ApplicationArguments args, AtomicInteger state)
extends Record
-
Constructor Summary
ConstructorDescriptionShellRunnerTaskData
(ShellRunner runner, org.springframework.boot.ApplicationArguments args, AtomicInteger state) Creates an instance of aShellRunnerTaskData
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.ApplicationArguments
args()
Returns the value of theargs
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.runner()
Returns the value of therunner
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ShellRunnerTaskData
public ShellRunnerTaskData(ShellRunner runner, org.springframework.boot.ApplicationArguments args, AtomicInteger state) Creates an instance of aShellRunnerTaskData
record class.- Parameters:
runner
- the value for therunner
record componentargs
- the value for theargs
record componentstate
- the value for thestate
record 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)
. -
runner
Returns the value of therunner
record component.- Returns:
- the value of the
runner
record component
-
args
public org.springframework.boot.ApplicationArguments args()Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-