Interface BundleElement
-
@Immutable public interface BundleElementA 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.Stringid()The maven coordinates corresponding to this artifact.static BundleElementof(java.lang.String sha256, java.lang.String id, java.lang.String path)Create a new bundle element.java.lang.Stringpath()The path of the index entry in the jar.java.lang.Stringsha256()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 hashid- the ID of the bundle elementpath- 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
-
-