Class Platform

java.lang.Object
com.twelvemonkeys.lang.Platform

public final class Platform extends 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 Details

    • get

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

      public Platform.OperatingSystem getOS()
      Returns:
      this platform's OS.
    • getVersion

      public 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 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.