Class ProcessCommand


  • @Immutable
    public class ProcessCommand
    extends Object
    Represents an external process command. The optional mask value will be hidden when retrieving the "safe" String representation of the command.
    • Method Detail

      • getCommandList

        @NotNull
        public @NotNull List<String> getCommandList()
        Get the command as a List. The exact command is returned without applying the mask.
        Returns:
        the unmasked command as a List
      • getSafeCommandString

        @NotNull
        public @NotNull String getSafeCommandString()
        Get the command as a String replacing all occurrences of the mask value with a masked password String, e.g. "********".
        Returns:
        the masked String representation of the command.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object