Class DefaultCommand

  • All Implemented Interfaces:
    Command

    public final class DefaultCommand
    extends Object
    implements Command
    Default implementation for Command interface. This implementation should only be used with CommandBuilder builder.
    • Constructor Detail

      • DefaultCommand

        public DefaultCommand​(String executable,
                              List<String> arguments)
        Create command line.
        Parameters:
        executable - Executable value.
        arguments - List of optional arguments.
    • Method Detail

      • getArguments

        public List<String> getArguments()
        Description copied from interface: Command
        Command arguments:
        • First item should be the command line executable value.
        • Next items should be the command line arguments.
        Specified by:
        getArguments in interface Command
        Returns:
        Command arguments.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object