Enum DefaultOperatingSystemTypes
- java.lang.Object
-
- java.lang.Enum<DefaultOperatingSystemTypes>
-
- com.sedmelluq.lava.common.natives.architecture.DefaultOperatingSystemTypes
-
- All Implemented Interfaces:
OperatingSystemType,java.io.Serializable,java.lang.Comparable<DefaultOperatingSystemTypes>
public enum DefaultOperatingSystemTypes extends java.lang.Enum<DefaultOperatingSystemTypes> implements OperatingSystemType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DARWINLINUXLINUX_MUSLSOLARISWINDOWS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperatingSystemTypedetect()java.lang.Stringidentifier()java.lang.StringlibraryFilePrefix()java.lang.StringlibraryFileSuffix()static DefaultOperatingSystemTypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DefaultOperatingSystemTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINUX
public static final DefaultOperatingSystemTypes LINUX
-
LINUX_MUSL
public static final DefaultOperatingSystemTypes LINUX_MUSL
-
WINDOWS
public static final DefaultOperatingSystemTypes WINDOWS
-
DARWIN
public static final DefaultOperatingSystemTypes DARWIN
-
SOLARIS
public static final DefaultOperatingSystemTypes SOLARIS
-
-
Method Detail
-
values
public static DefaultOperatingSystemTypes[] 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 (DefaultOperatingSystemTypes c : DefaultOperatingSystemTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultOperatingSystemTypes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
identifier
public java.lang.String identifier()
- Specified by:
identifierin interfaceOperatingSystemType- Returns:
- Identifier used in directory names (combined with architecture) for this OS
-
libraryFilePrefix
public java.lang.String libraryFilePrefix()
- Specified by:
libraryFilePrefixin interfaceOperatingSystemType- Returns:
- Prefix used for library file names.
libon most Unix flavors.
-
libraryFileSuffix
public java.lang.String libraryFileSuffix()
- Specified by:
libraryFileSuffixin interfaceOperatingSystemType- Returns:
- Suffix (extension) used for library file names.
-
detect
public static OperatingSystemType detect()
-
-