Module org.tquadrat.foundation.util
Package org.tquadrat.foundation.util
Enum Class SystemUtils.OperatingSystem
java.lang.Object
java.lang.Enum<SystemUtils.OperatingSystem>
org.tquadrat.foundation.util.SystemUtils.OperatingSystem
- All Implemented Interfaces:
Serializable
,Comparable<SystemUtils.OperatingSystem>
,Constable
- Enclosing class:
SystemUtils
@ClassVersion(sourceVersion="$Id: SystemUtils.java 1136 2024-05-30 18:25:38Z tquadrat $")
@API(status=STABLE,
since="0.0.6")
public static enum SystemUtils.OperatingSystem
extends Enum<SystemUtils.OperatingSystem>
The operating system families that are supported (or not) by Java.
Currently, we can distinguish only between Microsoft Windows, UNIX/Linux and MacOX/OS-X.
Currently, we can distinguish only between Microsoft Windows, UNIX/Linux and MacOX/OS-X.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: SystemUtils.java 1136 2024-05-30 18:25:38Z tquadrat $
- Since:
- 0.0.6
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.SystemUtils.OperatingSystem"
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the operating system architecture.final String
getName()
Returns the name of the operating system.final String
Returns the name of the operating system.final String
Returns the version of the operating system.static SystemUtils.OperatingSystem
Returns the enum constant of this class with the specified name.static SystemUtils.OperatingSystem[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Constructor Details
-
OperatingSystem
private OperatingSystem()
-
-
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
-
getArchitecture
Returns the operating system architecture.- Returns:
- The architecture.
-
getName
Returns the name of the operating system.- Returns:
- The operating system name.
-
getNameVersion
Returns the name of the operating system.- Returns:
- The operating system name.
-
getVersion
Returns the version of the operating system.- Returns:
- The version of the operating system.
-