/** * gives a {@link URLPath} with a trailing slash * * @return a new created {@link URLPath}, which have all elements, with a * trailing slash */ public URLPath appendTrailingSlash() { if (hasTrailingSlash()) { return this; } return append(ROOT); }
/** * gives a {@link URLPath} with a trailing slash * * @return a new created {@link URLPath}, which have all elements, with a * trailing slash */ public URLPath appendTrailingSlash() { if (hasTrailingSlash()) { return this; } return append(ROOT); }