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 $
    Author:
    Harald Kuhr, last modified by $Author: haku $
    • 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.