public final class Platform extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Platform.Architecture |
Enumeration of common System
Architecture s. |
static class |
Platform.OperatingSystem |
Enumeration of common
OperatingSystem s. |
Modifier and Type | Method | Description |
---|---|---|
static Platform.Architecture |
arch() |
Shorthand for
Platform.get().getArchitecture() . |
static Platform |
get() |
Returns the current
Platform . |
Platform.Architecture |
getArchitecture() |
|
Platform.OperatingSystem |
getOS() |
|
String |
getVersion() |
|
static Platform.OperatingSystem |
os() |
Shorthand for
Platform.get().getOS() . |
static String |
version() |
Shorthand for
Platform.get().getVersion() . |
public static Platform get()
Platform
.Platform
.public Platform.OperatingSystem getOS()
public String getVersion()
public Platform.Architecture getArchitecture()
public static Platform.OperatingSystem os()
Platform.get().getOS()
.OperatingSystem
.public static String version()
Platform.get().getVersion()
.public static Platform.Architecture arch()
Platform.get().getArchitecture()
.Architecture
.Copyright © 2018. All rights reserved.