Package net.ME1312.Galaxi.Library
Enum Class Platform
- All Implemented Interfaces:
Serializable
,Comparable<Platform>
,java.lang.constant.Constable
Operating System Platform Enum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the appropriate location for storing user data for this Operating Systemstatic String
Get the Architecture the current version of Java was designed forstatic int
Get the Java Language Level that is currently being providedstatic String
Get the Java Version that is currently being usedgetName()
Get the name of this known Operating Systemstatic Platform
Get the Operating System that is currently being usedstatic String
Get the architecture of the Operating System that is currently being usedstatic String
Get the build of the Operating System that is currently being usedstatic String
Get the name of the Operating System that is currently being usedstatic String
Get the version of the Operating System that is currently being usedstatic Platform
Returns the enum constant of this class with the specified name.static Platform[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WINDOWS
-
MAC_OS
-
UNIX
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getName
Get the name of this known Operating System- Returns:
- Operating System Name
-
getAppDataDirectory
Get the appropriate location for storing user data for this Operating System- Returns:
- AppData Directory
-
getSystem
Get the Operating System that is currently being used- Returns:
- Current Operating System
-
getSystemName
Get the name of the Operating System that is currently being used- Returns:
- Current Operating System Name
-
getSystemVersion
Get the version of the Operating System that is currently being used- Returns:
- Current Operating System Version
-
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
Get the architecture of the Operating System that is currently being used- Returns:
- Current Operating System Architecture
-
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
Get the Architecture the current version of Java was designed for- Returns:
- Current Java Architecture
-