public Job getJob ( String name ) { //FIXME: Check for null of jobs? Can that happen? return jobs . stream ( ) . map ( SET_CLIENT ( this . client ) ) . filter ( item -> item . getName ( ) . equals ( name ) ) . findAny ( ) . orElseThrow ( ( ) -> new IllegalArgumentException ( "Job with name " + name + " does not exist." ) ) ; }
Get a job in this folder by name