Class Platform


  • public final class Platform
    extends java.lang.Object
    Platform
    Version:
    $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/lang/Platform.java#1 $
    • Field Detail

      • version

        final java.lang.String version
        Unnormalized operating system version constant (for completeness)
      • INSTANCE

        private static final Platform INSTANCE
    • Constructor Detail

      • Platform

        private Platform()
      • Platform

        Platform​(java.util.Properties properties)
    • Method Detail

      • get

        public static Platform get()
        Returns the current Platform.
        Returns:
        the current Platform.
      • getVersion

        public java.lang.String getVersion()
        Returns:
        this platform's OS version.
      • getArchitecture

        public Platform.Architecture getArchitecture()
        Returns:
        this platform's architecture.
      • os

        public static Platform.OperatingSystem os()
        Shorthand for Platform.get().getOS().
        Returns:
        the current OperatingSystem.
      • version

        public static java.lang.String version()
        Shorthand for Platform.get().getVersion().
        Returns:
        the current OS version.
      • arch

        public static Platform.Architecture arch()
        Shorthand for Platform.get().getArchitecture().
        Returns:
        the current Architecture.