Class CommandHandlingResult.DefaultHandlingResult
java.lang.Object
org.springframework.shell.command.CommandHandlingResult.DefaultHandlingResult
- All Implemented Interfaces:
CommandHandlingResult
- Enclosing interface:
- CommandHandlingResult
public static class CommandHandlingResult.DefaultHandlingResult
extends Object
implements CommandHandlingResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandHandlingResult
CommandHandlingResult.DefaultHandlingResult
-
Method Summary
Modifier and TypeMethodDescriptionexitCode()
Gets an exit code for thisCommandHandlingResult
.boolean
isEmpty()
Indicate whether thisCommandHandlingResult
does not have a result.boolean
Indicate whether thisCommandHandlingResult
has a result.message()
Gets a message for thisCommandHandlingResult
.
-
Method Details
-
message
Description copied from interface:CommandHandlingResult
Gets a message for thisCommandHandlingResult
.- Specified by:
message
in interfaceCommandHandlingResult
- Returns:
- a message
-
exitCode
Description copied from interface:CommandHandlingResult
Gets an exit code for thisCommandHandlingResult
. Exit code only has meaning if shell is in non-interactive mode.- Specified by:
exitCode
in interfaceCommandHandlingResult
- Returns:
- an exit code
-
isPresent
public boolean isPresent()Description copied from interface:CommandHandlingResult
Indicate whether thisCommandHandlingResult
has a result.- Specified by:
isPresent
in interfaceCommandHandlingResult
- Returns:
- true if result exist
-
isEmpty
public boolean isEmpty()Description copied from interface:CommandHandlingResult
Indicate whether thisCommandHandlingResult
does not have a result.- Specified by:
isEmpty
in interfaceCommandHandlingResult
- Returns:
- true if result doesn't exist
-