com.twelvemonkeys.lang
Class Platform

java.lang.Object
  extended by 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 $

Nested Class Summary
static class Platform.Architecture
          Enumeration of common System Architectures.
static class Platform.OperatingSystem
          Enumeration of common OperatingSystems.
 
Method Summary
static Platform.Architecture arch()
          Shorthand for Platform.get().getArchitecture().
static Platform get()
          Returns the current Platform.
 Platform.Architecture getArchitecture()
           
 Platform.OperatingSystem getOS()
           
 String getVersion()
           
static Platform.OperatingSystem os()
          Shorthand for Platform.get().getOS().
static String version()
          Shorthand for Platform.get().getVersion().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2014. All Rights Reserved.