Modifier and Type | Class and Description |
---|---|
static class |
BasicOsDetails.Factory |
static class |
BasicOsDetails.OsArchs |
static class |
BasicOsDetails.OsNames |
static class |
BasicOsDetails.OsVersions |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNIX_OS_NAME_PATTERNS |
Constructor and Description |
---|
BasicOsDetails(java.lang.String name,
java.lang.String arch,
java.lang.String version)
Sets is64Bit according to value of arch parameter.
|
BasicOsDetails(java.lang.String name,
java.lang.String arch,
java.lang.String version,
boolean is64Bit) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArch()
The operating system's architecture, e.g.
|
java.lang.String |
getName()
The name of the operating system, e.g.
|
java.lang.String |
getVersion()
The version of the operating system.
|
boolean |
is64bit() |
boolean |
isLinux() |
boolean |
isMac() |
boolean |
isWindows() |
java.lang.String |
toString() |
public static final java.lang.String UNIX_OS_NAME_PATTERNS
public BasicOsDetails(java.lang.String name, java.lang.String arch, java.lang.String version)
public BasicOsDetails(java.lang.String name, java.lang.String arch, java.lang.String version, boolean is64Bit)
@Nullable public java.lang.String getName()
OsDetails
@Nullable public java.lang.String getArch()
OsDetails
@Nullable public java.lang.String getVersion()
OsDetails
getVersion
in interface OsDetails
public java.lang.String toString()
toString
in class java.lang.Object