saker.nest Documentation TaskDoc JavaDoc Packages
public static final class ExternalDependencyList.Builder
Builder class for ExternalDependencyList.
Methods
public Builder
Adds the argument dependency to the list of dependencies.
public Builder
Adds a documentation attachment.
public Builder
Adds a source attachment.
public ExternalDependencyList
Creates an ExternalDependencyList object from the contents of this builder.
public String
Gets the MD5 hash previously set using setMd5Hash(String).
public String
Gets the SHA-1 hash previously set using setSha1Hash(String).
public String
Gets the SHA-256 hash previously set using setSha256Hash(String).
public boolean
Checks if a documentation attachment is already added for the given URI.
public boolean
Checks if a source attachment is already added for the given URI.
public Builder
Sets the MD5 hash.
public Builder
Sets the SHA-1 hash.
public Builder
setSha256Hash(String sha256Hash)
Sets the SHA-256 hash.
Adds the argument dependency to the list of dependencies.
depThe dependency.
this
NullPointerExceptionIf the argument is null
Adds a documentation attachment.
uriThe URI of the attachment.
infoThe attachment information.
this
NullPointerExceptionIf any of the arguments are null.
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.
public boolean hasDocumentationAttachment(URI uri)
Checks if a documentation attachment is already added for the given URI.
uriThe URI to check for.
true if a documentation attachment is already present for the given resource identifier.
public boolean hasSourceAttachment(URI uri)
Checks if a source attachment is already added for the given URI.
uriThe URI to check for.
true if a source attachment is already present for the given resource identifier.
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.