pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Set Qsub argument.
     *
     * @param       argument  qsub argument
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code argument} is {@code null}
     * @exception   IllegalArgumentException in case {@code argument} is blank string
     */
Set Qsub argument.
@param       argument  qsub argument
@return      a reference to this object.
@exception   IllegalArgumentException in case  argument is  null
@exception   IllegalArgumentException in case  argument is blank string
Set Qsub argument . @param argument qsub argument @return a reference to this object . @exception IllegalArgumentException in case argument is null @exception IllegalArgumentException in case argument is blank string
public SubmitJobBuilder argument(String argument) {
        if (argument == null) {
            throw new IllegalArgumentException("argument can not be null");
        }
        if (argument.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("argument can not be empty string");
        }
        if (this.arguments == null) {
            this.arguments = new LinkedList<>();
        }
        this.arguments.add(argument);
        return this;
    }
public SubmitJobBuilder argument ( String argument ) { if ( argument == null ) { throw new IllegalArgumentException ( "argument can not be null" ) ; } if ( argument . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "argument can not be empty string" ) ; } if ( this . arguments == null ) { this . arguments = new LinkedList < > ( ) ; } this . arguments . add ( argument ) ; return this ; }
Set Qsub argument.
Set Qsub argument .