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.booleanisEmpty()Indicate whether thisCommandHandlingResultdoes not have a result.booleanIndicate whether thisCommandHandlingResulthas a result.message()Gets a message for thisCommandHandlingResult.
-
Method Details
-
message
Description copied from interface:CommandHandlingResultGets a message for thisCommandHandlingResult.- Specified by:
messagein interfaceCommandHandlingResult- Returns:
- a message
-
exitCode
Description copied from interface:CommandHandlingResultGets an exit code for thisCommandHandlingResult. Exit code only has meaning if shell is in non-interactive mode.- Specified by:
exitCodein interfaceCommandHandlingResult- Returns:
- an exit code
-
isPresent
public boolean isPresent()Description copied from interface:CommandHandlingResultIndicate whether thisCommandHandlingResulthas a result.- Specified by:
isPresentin interfaceCommandHandlingResult- Returns:
- true if result exist
-
isEmpty
public boolean isEmpty()Description copied from interface:CommandHandlingResultIndicate whether thisCommandHandlingResultdoes not have a result.- Specified by:
isEmptyin interfaceCommandHandlingResult- Returns:
- true if result doesn't exist
-