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
-
Method Details
-
message
Description copied from interface:CommandHandlingResult
Gets a message for thisHandlingResult
.- Specified by:
message
in interfaceCommandHandlingResult
- Returns:
- a message
-
exitCode
Description copied from interface:CommandHandlingResult
Gets an exit code for thisHandlingResult
. 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 thisHandlingResult
has a result.- Specified by:
isPresent
in interfaceCommandHandlingResult
- Returns:
- true if result exist
-
isEmpty
public boolean isEmpty()Description copied from interface:CommandHandlingResult
Indicate whether thisHandlingResult
does not have a result.- Specified by:
isEmpty
in interfaceCommandHandlingResult
- Returns:
- true if result doesn't exist
-