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 $
  • Field Details

    • os

      Normalized operating system constant
    • version

      final String version
      Unnormalized operating system version constant (for completeness)
    • architecture

      final Platform.Architecture architecture
      Normalized system architecture constant
    • INSTANCE

      private static final Platform INSTANCE
  • Constructor Details

    • Platform

      private Platform()
    • Platform

      Platform(Properties properties)
  • Method Details

    • normalizeOperatingSystem

      static Platform.OperatingSystem normalizeOperatingSystem(String osName)
    • normalizeArchitecture

      static Platform.Architecture normalizeArchitecture(Platform.OperatingSystem pOsName, String osArch)
    • 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.