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 enumEnumeration of common SystemArchitectures.static enumEnumeration of commonOperatingSystems. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Platform.ArchitectureNormalized system architecture constantprivate static final Platform(package private) final Platform.OperatingSystemNormalized operating system constant(package private) final StringUnnormalized operating system version constant (for completeness) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePlatform()(package private)Platform(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.Architecturearch()Shorthand forPlatform.get().getArchitecture().static Platformget()Returns the currentPlatform.getOS()(package private) static Platform.ArchitecturenormalizeArchitecture(Platform.OperatingSystem pOsName, String osArch) (package private) static Platform.OperatingSystemnormalizeOperatingSystem(String osName) static Platform.OperatingSystemos()Shorthand forPlatform.get().getOS().static Stringversion()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
-
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.
-