/** * Replace any scheme requirements with the supplied scheme. * * @param scheme the scheme to use as a requirement * @return {@code this}. */ @NonNull public GitURIRequirementsBuilder withScheme(@CheckForNull String scheme) { withoutScheme(); if (scheme != null) { requirements.add(new SchemeRequirement(scheme)); } return this; }
return withoutScheme().withoutPath().withoutHostname().withoutHostnamePort();