Package org.syncany.util
Enum EnvironmentUtil.OperatingSystem
- java.lang.Object
-
- java.lang.Enum<EnvironmentUtil.OperatingSystem>
-
- org.syncany.util.EnvironmentUtil.OperatingSystem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnvironmentUtil.OperatingSystem>
- Enclosing class:
- EnvironmentUtil
public static enum EnvironmentUtil.OperatingSystem extends java.lang.Enum<EnvironmentUtil.OperatingSystem>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnixLike()
static EnvironmentUtil.OperatingSystem
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnvironmentUtil.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 EnvironmentUtil.OperatingSystem WINDOWS
-
OSX
public static final EnvironmentUtil.OperatingSystem OSX
-
UNIX_LIKE
public static final EnvironmentUtil.OperatingSystem UNIX_LIKE
-
-
Method Detail
-
values
public static EnvironmentUtil.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 (EnvironmentUtil.OperatingSystem c : EnvironmentUtil.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 EnvironmentUtil.OperatingSystem 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
-
isUnixLike
public boolean isUnixLike()
-
-