public class Platform extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | isLinux()Determine if the platform is Linux. | 
| static boolean | isMac()Determine if the platform is Mac OS. | 
| static boolean | isMac(String version)Determine if the platform is Mac and the version is greater than or equal
 to the version specified. | 
| static boolean | isSolaris()Determine if the platform is Solaris. | 
| static boolean | isUnix()Determine if the platform is Unix or Linux. | 
| static boolean | isWindows()Determine if the platform is Windows. | 
| static boolean | isWindows(double version)Determine if the platform is Windows and the version is greater than or
 equal to the version specified. | 
public static boolean isLinux()
public static boolean isMac()
public static boolean isMac(String version)
version - The Mac version to verify, such as 10.13.4public static boolean isSolaris()
public static boolean isUnix()
public static boolean isWindows()
public static boolean isWindows(double version)
version - The Windows version to verify. Version numbers correspond
                to internal Microsoft versions, such as 5.1, 6.0, 6.1,
                6.2, 6.3, and 10.0.