Class PackageURL.Builder

  • Enclosing class:
    PackageURL

    public static final class PackageURL.Builder
    extends Object
    A builder construct for Package-URL objects.
    • Method Detail

      • withType

        public PackageURL.Builder withType​(String type)
        Adds the package URL type.
        Parameters:
        type - the package type
        Returns:
        a reference to the builder
        See Also:
        PackageURL.name(), com.github.packageurl.PackageURL.StandardTypes
      • build

        public PackageURL build()
        Builds the new PackageURL object.
        Returns:
        the new PackageURL object