exists and notExists

Elliotte Harold elharo at metalab.unc.edu
Mon May 26 06:05:53 PDT 2008


Why do are there both exists() and notExists() methods in 
java.nio.file.Path? Is there some subtle issue such that notExists() is 
not equivalent to !exists()?

Otherwise, this feels like unnecessary duplication to me. I'd rather 
have just the single exists() method.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/



More information about the nio-discuss mailing list