Java Utililty Methods Mac OS Version

List of utility methods to do Mac OS Version

Description

The list of methods to do Mac OS Version are organized into topic(s).

Method

booleanisMacOSVersion(int major, int minor, int sub)
is Mac OS Version
if (!isMac())
    return false;
Matcher m = MACOSVERSION.matcher(System.getProperty("os.version"));
if (!m.matches())
    return false;
int actualMajor = Integer.parseInt(m.group(1)), actualMinor = Integer.parseInt(m.group(2)),
        actualSub = Integer.parseInt(m.group(3));
return actualMajor > major
...
booleanisMacOSVersionLessThan(int major, int minor, int sub)
is Mac OS Version Less Than
if (!isMac())
    return false;
return !isMacOSVersion(major, minor, sub);