Re: Optional.isEmpty()

2017-04-24 Thread Sander Mak
> On 22 Apr 2017, at 11:40, Peter Levart wrote: >return cf.findModule(target).isEmpty(); > > What do you think? Would this pull its weight? If I had a nickel for each time I started typing .isEm.., I'd have a respectable nickel collection. Big +1 from me. Sander

ProcessHandle::onExit behavior

2017-03-06 Thread Sander Mak
I was trying to get an example to work with the new ProcessHandle API. My goal was to wait on another process (Spotify) to terminate before printing something to the console: ProcessHandle handle = ProcessHandle.allProcesses() .filter(h -> h.info().commandLine().map(cmd ->