I totally agree about ugliness of String,boolean,boolean version.
Your refinement using bulider pattern is certianly better and definitely interesting, however seems a little bit overkill in this case.
How about introducing an Enum named AccesMode in place of boolean,boolean flags?

PS. I just love those comments on createNewFile(), setReadable() and setWritable() method invocations. They certainly boost the quality of code at least three times :)

But, I don't like your design. The interface is included in the TestUtils which is a util tool set. So it is better to use the interface directly, not like your TmpDirBuilder. I think the best way is to create your own tool set which use the createTemporaryDir interface to implement createTemporaryNonReadableDir, createTemporaryNonWritableDir and createTemporaryNonReadableNonWritableDir. How do you think? - low blood pressure | stress and blood pressure | high blood pressure remedies

Hi, I understand his meaning. What he said is not to modify JDK's interface. That is in the JDK, there's one general interface, while in you own software, if you want to be easier to use the interface, you could implement three different interfaces based on the JDK's general interface. I think this is what he said. - throat cancer pictures | strep throat | throat cancer