レコードクラス ShellInputProvider
java.lang.ObjectSE
java.lang.RecordSE
org.springframework.shell.test.ShellInputProvider
- レコードコンポーネント:
command- represents the command to be executed in the shell.inputs- Queue containing user input strings.passwords- Queue containing user password strings.
public record ShellInputProvider(StringSE command, DequeSE<StringSE> inputs, DequeSE<StringSE> passwords)
extends RecordSE
Represents a provider for commands with their inputs and passwords used in shell interactions. This class uses two
DequeSE instances to manage the queue of user inputs and passwords. It serves as a utility for simulating user input during testing or automated shell interactions.- 導入:
- 4.0.2
- 作成者:
- David Pilar, Mahmoud Ben Hassine
コンストラクターの詳細
メソッドの詳細
toString
このレコードクラスの文字列表現を返します。表現には、クラスの名前が含まれ、その後に各レコードコンポーネントの名前と値が続きます。hashCode
public final int hashCode()このオブジェクトのハッシュコード値を返します。値は、各レコードコンポーネントのハッシュコードから導出されます。equals
他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。他のオブジェクトが同じクラスであり、すべてのレコードコンポーネントが等しい場合、オブジェクトは等しいです。このレコードクラスのすべてのコンポーネントがObjects::equals(Object,Object)SE と比較されます。command
commandレコードコンポーネントの値を返します。- 戻り値:
commandレコードコンポーネントの値
inputs
inputsレコードコンポーネントの値を返します。- 戻り値:
inputsレコードコンポーネントの値
passwords
passwordsレコードコンポーネントの値を返します。- 戻り値:
passwordsレコードコンポーネントの値