Package berlin.yuna.clu.model
Enum OsType
- java.lang.Object
-
- java.lang.Enum<OsType>
-
- berlin.yuna.clu.model.OsType
-
- All Implemented Interfaces:
Serializable,Comparable<OsType>
public enum OsType extends Enum<OsType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OS_2OS_400OS_AIXOS_DARWINOS_FREE_BSDOS_HP_UXOS_IRIXOS_LINUXOS_MIPSOS_NET_BSDOS_OPEN_BSDOS_SOLARISOS_SUNOS_UNKNOWNOS_WINDOWSOS_ZOS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getPrefix()booleanisUnix()static OsTypeof(String osName)static StringosCase(String upperCase, int from)StringtoString()static OsTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OS_LINUX
public static final OsType OS_LINUX
-
OS_DARWIN
public static final OsType OS_DARWIN
-
OS_WINDOWS
public static final OsType OS_WINDOWS
-
OS_AIX
public static final OsType OS_AIX
-
OS_IRIX
public static final OsType OS_IRIX
-
OS_HP_UX
public static final OsType OS_HP_UX
-
OS_400
public static final OsType OS_400
-
OS_FREE_BSD
public static final OsType OS_FREE_BSD
-
OS_OPEN_BSD
public static final OsType OS_OPEN_BSD
-
OS_NET_BSD
public static final OsType OS_NET_BSD
-
OS_2
public static final OsType OS_2
-
OS_SOLARIS
public static final OsType OS_SOLARIS
-
OS_SUN
public static final OsType OS_SUN
-
OS_MIPS
public static final OsType OS_MIPS
-
OS_ZOS
public static final OsType OS_ZOS
-
OS_UNKNOWN
public static final OsType OS_UNKNOWN
-
-
Method Detail
-
values
public static OsType[] 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 (OsType c : OsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OsType 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
-
getPrefix
public String[] getPrefix()
-
isUnix
public boolean isUnix()
-
-