/** * Replace any path requirements with the supplied path. * * @param path the path to use as a requirement * @return {@code this}. * @since 1.12 */ @NonNull public URIRequirementBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }
/** * Replace any path requirements with the supplied path. * * @param path the path to use as a requirement * @return {@code this}. * @since 1.12 */ @NonNull public URIRequirementBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }