package saker.nest.bundle
Builder class for ExternalDependencyList.
public Builder | Adds the argument dependency to the list of dependencies. |
public Builder | Adds a documentation attachment. |
public Builder | addSourceAttachment( Adds a source attachment. |
public ExternalDependencyList | build() Creates an ExternalDependencyList object from the contents of this builder. |
public String | Gets the MD5 hash previously set using setMd5Hash( |
public String | Gets the SHA-1 hash previously set using setSha1Hash( |
public String | Gets the SHA-256 hash previously set using setSha256Hash( |
public boolean | Checks if a documentation attachment is already added for the given URI. |
public boolean | hasSourceAttachment( Checks if a source attachment is already added for the given URI. |
public Builder | setMd5Hash( Sets the MD5 hash. |
public Builder | setSha1Hash( Sets the SHA-1 hash. |
public Builder | setSha256Hash( Sets the SHA-256 hash. |
Adds the argument dependency to the list of dependencies.
depThe dependency.
this
NullPointerExceptionIf the argument is
null
public Builder addDocumentationAttachment(URI uri, ExternalAttachmentInformation info) throws NullPointerException
Adds a documentation attachment.
uriThe URI of the attachment.
infoThe attachment information.
this
NullPointerExceptionIf any of the arguments are
null
.public Builder addSourceAttachment(URI uri, ExternalAttachmentInformation info) throws NullPointerException
Adds a source attachment.
uriThe URI of the attachment.
infoThe attachment information.
this
NullPointerExceptionIf any of the arguments are
null
.Creates an ExternalDependencyList object from the contents of this builder.
The builder can be reused after this call.
The constructed dependency list.
Gets the MD5 hash previously set using setMd5Hash(String) .
The hash or
null
if none.Gets the SHA-1 hash previously set using setSha1Hash(String) .
The hash or
null
if none.Gets the SHA-256 hash previously set using setSha256Hash(String) .
The hash or
null
if none.Sets the MD5 hash.
The argument will be converted to lowercase hexa representation.
md5HashThe hash or
null
to unset.this
IllegalArgumentExceptionIf the argument is not a valid MD5 hash in hexa format.
Sets the SHA-1 hash.
The argument will be converted to lowercase hexa representation.
sha1HashThe hash or
null
to unset.this
IllegalArgumentExceptionIf the argument is not a valid SHA-1 hash in hexa format.
Sets the SHA-256 hash.
The argument will be converted to lowercase hexa representation.
sha256HashThe hash or
null
to unset.this
IllegalArgumentExceptionIf the argument is not a valid SHA-256 hash in hexa format.