@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            Path path = (Path) o;
            return trailingSlash == path.trailingSlash && segments().equals(path.segments());
        }
Intentionally not usable for constructing new URIs. Use {@link HttpURL} for that instead.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java