Class DefaultCommand

java.lang.Object
com.thebuzzmedia.exiftool.process.command.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 Details

    • DefaultCommand

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

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object