public class Update
extends java.lang.Object
URL to this release for visiting it in your browser.LocalDate at which this release was published/release.ReleaseAsset, if any.Source.| Constructor and Description |
|---|
Update(@NotNull java.lang.String version,
@Nullable java.lang.String description,
@NotNull java.net.URL link,
@NotNull java.time.LocalDate releaseDate,
@Nullable java.util.List<ReleaseAsset> assets,
@NotNull java.util.List<Source> sources)
Create a new Update-instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.List<ReleaseAsset>> |
assets()
Get the
ReleaseAsset-list of available assets for this update/release, wrapped in an Optional. |
java.util.Optional<java.lang.String> |
description()
Get the description of this update/release, wrapped in an
Optional. |
java.util.Optional<ReleaseAsset> |
getReleaseAsset(@NotNull java.lang.String releaseName)
Get a specific release-asset for a given name of said release.
|
java.time.LocalDate |
releaseDate()
Get the
LocalDate at which this release was published. |
java.util.List<Source> |
sources()
Get the
Source-list of available source-archives for this update/release. |
java.util.Optional<Source> |
sourceTar()
Get the tar-archive-source of this update.
|
java.util.Optional<Source> |
sourceTarBz2()
Get the tar.bz2-archive-source of this update.
|
Source |
sourceTarGz()
Get the tar.gz-archive-source of this update.
|
Source |
sourceZip()
Get the ZIP-archive-source of this update.
|
java.net.URL |
url()
Get the
URL to this release for use in your browser. |
java.lang.String |
version()
Get the version of this update/release.
|
public Update(@NotNull
@NotNull java.lang.String version,
@Nullable
@Nullable java.lang.String description,
@NotNull
@NotNull java.net.URL link,
@NotNull
@NotNull java.time.LocalDate releaseDate,
@Nullable
@Nullable java.util.List<ReleaseAsset> assets,
@NotNull
@NotNull java.util.List<Source> sources)
version - String The version of this update/release.description - String The description (release description as shown on release pages on GitLab or GitHub), of this release/update.link - URL The URL to this release for visiting it in your browser.releaseDate - LocalDate The date at which this release was published/release.assets - ReleaseAsset-list. Available release-assets for this update/release, if any.sources - Source-list. Available source-archives for this update/release.public java.lang.String version()
String The version of this update/release.public java.util.Optional<java.lang.String> description()
Optional.String The description of this update/release, wrapped in an Optional.public java.net.URL url()
URL to this release for use in your browser.URL to this release for use in your browser.public java.time.LocalDate releaseDate()
LocalDate at which this release was published.LocalDate at which this release was published.public java.util.Optional<java.util.List<ReleaseAsset>> assets()
ReleaseAsset-list of available assets for this update/release, wrapped in an Optional.ReleaseAsset-list of available assets for this update/release, wrapped in an Optional.public java.util.List<Source> sources()
Source-list of available source-archives for this update/release.Source-list of available source-archives for this update/release.public Source sourceZip()
Source of ArchiveType.ZIP of this update.public Source sourceTarGz()
Source of ArchiveType.TAR_GZ of this update.public java.util.Optional<Source> sourceTar()
Source of ArchiveType.TAR of this update, wrapped in an Optional.public java.util.Optional<Source> sourceTarBz2()
Source of ArchiveType.TAR_BZ2 of this update, wrapped in an Optional.public java.util.Optional<ReleaseAsset> getReleaseAsset(@NotNull @NotNull java.lang.String releaseName)
releaseName - String The name of the release asset.ReleaseAsset for the given name, wrapped in an Optional.