Interface BundleElement


  • @Immutable
    public interface BundleElement
    A single entry in a bundle.

    In bundle format version 1.0, these elements are declared as rows of tab-separated values.

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String id()
      The maven coordinates corresponding to this artifact.
      static BundleElement of​(java.lang.String sha256, java.lang.String id, java.lang.String path)
      Create a new bundle element.
      java.lang.String path()
      The path of the index entry in the jar.
      java.lang.String sha256()
      The expected hash of the file in the jar.
    • Method Detail

      • of

        static BundleElement of​(java.lang.String sha256,
                                java.lang.String id,
                                java.lang.String path)
        Create a new bundle element.
        Parameters:
        sha256 - the sha-265 hash
        id - the ID of the bundle element
        path - the path in the jar
        Returns:
        a new element
      • sha256

        @Parameter
        java.lang.String sha256()
        The expected hash of the file in the jar.
        Returns:
        SHA-265 hash string
      • id

        @Parameter
        java.lang.String id()
        The maven coordinates corresponding to this artifact.
        Returns:
        the maven coordinates
      • path

        @Parameter
        java.lang.String path()
        The path of the index entry in the jar.
        Returns:
        the path relative to the jar