pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Set job group. Jobs can be aggregated into groups. Setting job group is not mandatory.
     *
     * @param       group name of job group.
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code group} is {@code null}
     * @exception   IllegalArgumentException in case {@code group} is blank string
     */
Set job group. Jobs can be aggregated into groups. Setting job group is not mandatory.
@param       group name of job group.
@return      a reference to this object.
@exception   IllegalArgumentException in case  group is  null
@exception   IllegalArgumentException in case  group is blank string
Set job group . Jobs can be aggregated into groups . Setting job group is not mandatory . @param group name of job group . @return a reference to this object . @exception IllegalArgumentException in case group is null @exception IllegalArgumentException in case group is blank string
public SubmitJobBuilder group(String group) {
        if (group == null) {
            throw new IllegalArgumentException("group can not be null");
        }
        if (group.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("group can not be empty string");
        }
        this.group = group;
        return this;
    }
public SubmitJobBuilder group ( String group ) { if ( group == null ) { throw new IllegalArgumentException ( "group can not be null" ) ; } if ( group . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "group can not be empty string" ) ; } this . group = group ; return this ; }
Set job group.
Set job group .