jcommon.core
Enum OS
java.lang.Object
java.lang.Enum<OS>
jcommon.core.OS
- All Implemented Interfaces:
- Serializable, Comparable<OS>
public enum OS
- extends Enum<OS>
Gathers information about operating systems and the one we're hosted on.
- Author:
- David Hoyt
Unknown
public static final OS Unknown
Windows95
public static final OS Windows95
Windows98
public static final OS Windows98
WindowsMe
public static final OS WindowsMe
WindowsNT
public static final OS WindowsNT
Windows2000
public static final OS Windows2000
WindowsXP
public static final OS WindowsXP
Windows2003
public static final OS Windows2003
Windows2008
public static final OS Windows2008
WindowsVista
public static final OS WindowsVista
Windows7
public static final OS Windows7
Windows8
public static final OS Windows8
Windows9
public static final OS Windows9
WindowsCE
public static final OS WindowsCE
OS2
public static final OS OS2
WindowsUnknown
public static final OS WindowsUnknown
MacOSX
public static final OS MacOSX
MacUnknown
public static final OS MacUnknown
Linux
public static final OS Linux
MPE_iX
public static final OS MPE_iX
HP_UX
public static final OS HP_UX
AIX
public static final OS AIX
FreeBSD
public static final OS FreeBSD
Irix
public static final OS Irix
OS_390
public static final OS OS_390
DigitalUnix
public static final OS DigitalUnix
Netware_4_11
public static final OS Netware_4_11
OSF1
public static final OS OSF1
SunOS
public static final OS SunOS
UnixUnknown
public static final OS UnixUnknown
Solaris
public static final OS Solaris
SolarisUnknown
public static final OS SolarisUnknown
VMS
public static final OS VMS
VMSUnknown
public static final OS VMSUnknown
NAME
public static final String NAME
values
public static OS[] 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 (OS c : OS.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OS 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 name
NullPointerException - if the argument is null
getSystemOSName
public static String getSystemOSName()
getSystemOS
public static OS getSystemOS()
getSystemOSFamily
public static OSFamily getSystemOSFamily()
getFamily
public OSFamily getFamily()
getVariants
public String[] getVariants()
getPlatformPartName
public String getPlatformPartName()
isPOSIX
public boolean isPOSIX()
isPOSIX
public static boolean isPOSIX(OS OS)
fromName
public static OS fromName(String Name)
Copyright © 2012-2013. All Rights Reserved.