Package com.twelvemonkeys.lang
Class Platform
java.lang.Object
com.twelvemonkeys.lang.Platform
Platform
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/lang/Platform.java#1 $
- Author:
- Harald Kuhr, last modified by $Author: haku $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of common SystemArchitecture
s.static enum
Enumeration of commonOperatingSystem
s. -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.Architecture
arch()
Shorthand forPlatform.get().getArchitecture()
.static Platform
get()
Returns the currentPlatform
.getOS()
static Platform.OperatingSystem
os()
Shorthand forPlatform.get().getOS()
.static String
version()
Shorthand forPlatform.get().getVersion()
.
-
Method Details
-
get
Returns the currentPlatform
.- Returns:
- the current
Platform
.
-
getOS
- Returns:
- this platform's OS.
-
getVersion
- Returns:
- this platform's OS version.
-
getArchitecture
- Returns:
- this platform's architecture.
-
os
Shorthand forPlatform.get().getOS()
.- Returns:
- the current
OperatingSystem
.
-
version
Shorthand forPlatform.get().getVersion()
.- Returns:
- the current OS version.
-
arch
Shorthand forPlatform.get().getArchitecture()
.- Returns:
- the current
Architecture
.
-