パースメソッドを追加

This commit is contained in:
ろむねこ 2024-01-22 11:54:39 +09:00
parent caf3a0dd34
commit b2c6085933
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -41,6 +41,14 @@ public class PublicPath {
}
}
public PublicPath parse(String path) {
String[] pathArray = path.split("/");
for (String p : pathArray) {
resolveInternal(p);
}
return this;
}
public PublicPath resolve(String path) {
resolveInternal(path);
return this;