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:CommandHandlingResultGets a message for thisHandlingResult.- Specified by:
messagein interfaceCommandHandlingResult- Returns:
- a message
-
exitCode
Description copied from interface:CommandHandlingResultGets an exit code for thisHandlingResult. 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 thisHandlingResulthas a result.- Specified by:
isPresentin interfaceCommandHandlingResult- Returns:
- true if result exist
-
isEmpty
public boolean isEmpty()Description copied from interface:CommandHandlingResultIndicate whether thisHandlingResultdoes not have a result.- Specified by:
isEmptyin interfaceCommandHandlingResult- Returns:
- true if result doesn't exist
-