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 enumEnumeration of common SystemArchitectures.static enumEnumeration of commonOperatingSystems. -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.Architecturearch()Shorthand forPlatform.get().getArchitecture().static Platformget()Returns the currentPlatform.getOS()static Platform.OperatingSystemos()Shorthand forPlatform.get().getOS().static Stringversion()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.
-