y
03/07/2024, 10:17 AMSam
03/07/2024, 10:20 AM() -> Path
?Klitos Kyriacou
03/07/2024, 12:02 PMFile
or a String
or a URI
or an actual Path
? There's no interface that defines them, but you could use function overloading. However, it's more type-safe (and self-documenting) to force the user to convert to Path
at the call site, and many stdlib (or Java API) methods already do this.