public static SkbShellArgument [ ] newArgumentArray ( SkbShellArgument ... args ) { if ( args == null ) { return null ; } Set < SkbShellArgument > ret = new HashSet <> ( ) ; for ( SkbShellArgument arg : args ) { if ( arg != null ) { ret . add ( arg ) ; } } return ret . toArray ( new SkbShellArgument [ args . length ] ) ; }
Returns a new argument array .