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 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of common SystemArchitecture
s.static enum
Enumeration of commonOperatingSystem
s. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Platform.Architecture
Normalized system architecture constantprivate static final Platform
(package private) final Platform.OperatingSystem
Normalized operating system constant(package private) final String
Unnormalized operating system version constant (for completeness) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Platform()
(package private)
Platform
(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.Architecture
arch()
Shorthand forPlatform.get().getArchitecture()
.static Platform
get()
Returns the currentPlatform
.getOS()
(package private) static Platform.Architecture
normalizeArchitecture
(Platform.OperatingSystem pOsName, String osArch) (package private) static Platform.OperatingSystem
normalizeOperatingSystem
(String osName) static Platform.OperatingSystem
os()
Shorthand forPlatform.get().getOS()
.static String
version()
Shorthand forPlatform.get().getVersion()
.
-
Field Details
-
os
Normalized operating system constant -
version
Unnormalized operating system version constant (for completeness) -
architecture
Normalized system architecture constant -
INSTANCE
-
-
Constructor Details
-
Platform
private Platform() -
Platform
Platform(Properties properties)
-
-
Method Details
-
normalizeOperatingSystem
-
normalizeArchitecture
-
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
.
-