PublicPathにrootを返すメソッドを追加

This commit is contained in:
r-ca 2024-01-14 17:16:28 +09:00
parent 9db85bb9b3
commit 0cab05c581
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -65,4 +65,10 @@ public class PublicPath {
public String getStringPath() {
return String.join("/", path);
}
public PublicPath getRoot() {
PublicPath root = new PublicPath();
root.add("/");
return root;
}
}