public final class DownloadVersion extends Object implements Comparable<DownloadVersion>
| Constructor and Description |
|---|
DownloadVersion(String name)
Constructor with all data.
|
DownloadVersion(String name,
List<DownloadOSFamily> osFamilies)
Constructor with all data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DownloadVersion other) |
boolean |
equals(Object obj) |
DownloadOSFamily |
findFamily(String name)
Returns the OS family with a given name.
|
String |
getName()
Returns the version name.
|
List<DownloadOSFamily> |
getOSFamilies()
Returns the list of OS families.
|
int |
hashCode() |
boolean |
isRelease()
Determines if this version is a release.
|
String |
toString() |
public DownloadVersion(String name)
name - Version (like "3.1.0", "4.1.1-hotfix1").public DownloadVersion(String name, List<DownloadOSFamily> osFamilies)
name - Version (like "3.1.0", "4.1.1-hotfix1").osFamilies - List of OS families like "Windows", "Mac" or "Linux".public final String getName()
public final List<DownloadOSFamily> getOSFamilies()
public DownloadOSFamily findFamily(String name)
name - Family to find.null if no family with that name was found.public boolean isRelease()
true if the version contains no "-rc" string.public final int compareTo(DownloadVersion other)
compareTo in interface Comparable<DownloadVersion>Copyright © 2019 fuin.org (Germany). All rights reserved.