public final class DownloadOS extends Object implements Comparable<DownloadOS>
| Constructor and Description |
|---|
DownloadOS(String os)
Constructor with mandatory data.
|
DownloadOS(String os,
String currentVersion,
List<DownloadVersion> versions)
Constructor with all data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DownloadOS other) |
boolean |
equals(Object obj) |
DownloadVersion |
findVersion(String number)
Returns the version with a given number.
|
String |
getCurrentVersion()
Returns the latest version.
|
DownloadVersion |
getLatestVersion()
Returns the latest version.
|
String |
getOS()
Returns the OS name.
|
List<DownloadVersion> |
getVersions()
Returns the list of available versions.
|
int |
hashCode() |
String |
toString() |
public DownloadOS(String os)
os - OS (like "ubuntu-14.04", "osx-10.10" or "win").public DownloadOS(String os, String currentVersion, List<DownloadVersion> versions)
os - OS (like "ubuntu-14.04", "osx-10.10" or "win").currentVersion - Latest version.versions - List of all versions.public final String getOS()
null.public final String getCurrentVersion()
null.public final List<DownloadVersion> getVersions()
null.public final DownloadVersion getLatestVersion()
null if there are no versions.public DownloadVersion findVersion(String number)
number - Version number to find - Cannot be null.null if no OS with that name was
found.public final int compareTo(DownloadOS other)
compareTo in interface Comparable<DownloadOS>Copyright © 2016 fuin.org (Germany). All rights reserved.