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

This commit is contained in:
r-ca committed 2024-01-14 17:16:28 +09:00
1 parent 9db85bb9b3
commit 0cab05c581
1 file changed
+6
@@ -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;
}
}