public final class DownloadOSFamily extends Object implements Comparable<DownloadOSFamily>
| Constructor and Description |
|---|
DownloadOSFamily(String name)
Constructor with mandatory data.
|
DownloadOSFamily(String name,
List<DownloadOS> downloads)
Constructor with mandatory data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DownloadOSFamily other) |
boolean |
equals(Object obj) |
DownloadOS |
findDownload(String name)
Returns the download with a given name.
|
DownloadOS |
findLatestDownload(String qualifier)
Returns the latest download version.
|
List<DownloadOS> |
getDownloads()
Returns the list of available downloads.
|
String |
getName()
Returns the OS family name.
|
int |
hashCode() |
String |
toString() |
public DownloadOSFamily(String name)
name - Family name (like "Windows", "Mac" or "Linux").public DownloadOSFamily(String name, List<DownloadOS> downloads)
name - Family name (like "Windows", "Mac" or "Linux").downloads - List of all downloads.public final String getName()
public final List<DownloadOS> getDownloads()
public DownloadOS findDownload(String name)
name - Download to find.null if no download with that name was found.public DownloadOS findLatestDownload(String qualifier)
qualifier - Type to select like "Ubuntu" or "Linux" or null (any).public final int compareTo(DownloadOSFamily other)
compareTo in interface Comparable<DownloadOSFamily>Copyright © 2019 fuin.org (Germany). All rights reserved.