Enum Class Platform

java.lang.Object
java.lang.Enum<Platform>
net.ME1312.Galaxi.Library.Platform
All Implemented Interfaces:
Serializable, Comparable<Platform>, java.lang.constant.Constable

public enum Platform extends Enum<Platform>
Operating System Platform Enum
  • Enum Constant Details

    • WINDOWS

      public static final Platform WINDOWS
    • MAC_OS

      public static final Platform MAC_OS
    • UNIX

      public static final Platform UNIX
  • Method Details

    • values

      public static Platform[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Platform valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Get the name of this known Operating System
      Returns:
      Operating System Name
    • getAppDataDirectory

      public File getAppDataDirectory()
      Get the appropriate location for storing user data for this Operating System
      Returns:
      AppData Directory
    • getSystem

      public static Platform getSystem()
      Get the Operating System that is currently being used
      Returns:
      Current Operating System
    • getSystemName

      public static String getSystemName()
      Get the name of the Operating System that is currently being used
      Returns:
      Current Operating System Name
    • getSystemVersion

      public static String getSystemVersion()
      Get the version of the Operating System that is currently being used
      Returns:
      Current Operating System Version
    • getSystemBuild

      public static String getSystemBuild()
      Get the build of the Operating System that is currently being used
      Returns:
      Current Operating System Build (or null if no further versioning information is available)
    • getSystemArchitecture

      public static String getSystemArchitecture()
      Get the architecture of the Operating System that is currently being used
      Returns:
      Current Operating System Architecture
    • getJavaVersion

      public static String getJavaVersion()
      Get the Java Version that is currently being used
      Returns:
      Current Java Version
    • getJavaLanguageLevel

      public static int getJavaLanguageLevel()
      Get the Java Language Level that is currently being provided
      Returns:
      Current Java Language Level
    • getJavaArchitecture

      public static String getJavaArchitecture()
      Get the Architecture the current version of Java was designed for
      Returns:
      Current Java Architecture