pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
     * After {@link SubmitJobBuilder.ChunkBuilder#build()}
     * is called, reference to current a submitJobBuilder is returned.
     *
     * @param       id new chunk id;
     * @return      ChunkBuilder instance.
     * @exception   IllegalArgumentException in case {@code id} is {@code null}
     * @exception   IllegalArgumentException in case {@code id} is negative value
     */
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
After  SubmitJobBuilder.ChunkBuilder#build()
is called, reference to current a submitJobBuilder is returned.

@param       id new chunk id;
@return      ChunkBuilder instance.
@exception   IllegalArgumentException in case  id is  null
@exception   IllegalArgumentException in case  id is negative value
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks . After SubmitJobBuilder . ChunkBuilder#build () is called reference to current a submitJobBuilder is returned . @param id new chunk id ; @return ChunkBuilder instance . @exception IllegalArgumentException in case id is null @exception IllegalArgumentException in case id is negative value
public ChunkBuilder chunk(Integer id) {
        if (id == null) {
            throw new IllegalStateException("Chunk id can not be null!");
        }
        if (id < 0) {
            throw new IllegalStateException("Chunk id can not be negative value!");
        }
        return chunk(id.toString());
    }
public ChunkBuilder chunk ( Integer id ) { if ( id == null ) { throw new IllegalStateException ( "Chunk id can not be null!" ) ; } if ( id < 0 ) { throw new IllegalStateException ( "Chunk id can not be negative value!" ) ; } return chunk ( id . toString ( ) ) ; }
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks.
This method create ChunkBuilder associated with SubmitJobBuilder for adding chunk into collection of chunks .