Enum VersionFinder.OperatingSystem
- java.lang.Object
-
- java.lang.Enum<VersionFinder.OperatingSystem>
-
- nonapi.io.github.classgraph.utils.VersionFinder.OperatingSystem
-
- All Implemented Interfaces:
Serializable
,Comparable<VersionFinder.OperatingSystem>
- Enclosing class:
- VersionFinder
public static enum VersionFinder.OperatingSystem extends Enum<VersionFinder.OperatingSystem>
The operating system type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VersionFinder.OperatingSystem
valueOf(String name)
Returns the enum constant of this type with the specified name.static VersionFinder.OperatingSystem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Windows
public static final VersionFinder.OperatingSystem Windows
Windows
-
MacOSX
public static final VersionFinder.OperatingSystem MacOSX
Mac OS X
-
Linux
public static final VersionFinder.OperatingSystem Linux
Linux
-
Unknown
public static final VersionFinder.OperatingSystem Unknown
Unknown
-
-
Method Detail
-
values
public static VersionFinder.OperatingSystem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VersionFinder.OperatingSystem c : VersionFinder.OperatingSystem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersionFinder.OperatingSystem valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-