public ProcessExecutor exitValues(int[] exitValues) {
    if (exitValues == null)
      return exitValueAny();
    // Convert int[] -> Integer[]
    Integer[] array = new Integer[exitValues.length];
    for (int i = 0; i < array.length; i++)
      array[i] = exitValues[i];
    return exitValues(array);
  }
public ProcessExecutor exitValues ( int [ ] exitValues ) { if ( exitValues == null ) return exitValueAny ( ) ; Integer [ ] array = new Integer [ exitValues . length ] ; for ( int i = 0 ; i < array . length ; i ++ ) array [ i ] = exitValues [ i ] ; return exitValues ( array ) ; }
Sets the allowed exit values for the process being executed.

@param exitValues set of exit values or <code>null</code> if all exit values are allowed.
@return This process executor.