Lines Matching refs:WindowsVersion
51 public static final WindowsVersion WINDOWS_UNKNOWN = new WindowsVersion(-1, -1);
52 public static final WindowsVersion WINDOWS_95 = new WindowsVersion(4, 0);
53 public static final WindowsVersion WINDOWS_98 = new WindowsVersion(4, 10);
54 public static final WindowsVersion WINDOWS_ME = new WindowsVersion(4, 90);
55 public static final WindowsVersion WINDOWS_2000 = new WindowsVersion(5, 0);
56 public static final WindowsVersion WINDOWS_XP = new WindowsVersion(5, 1);
57 public static final WindowsVersion WINDOWS_2003 = new WindowsVersion(5, 2);
58 public static final WindowsVersion WINDOWS_VISTA = new WindowsVersion(6, 0);
63 private final static Map<String, WindowsVersion> windowsVersionMap = new HashMap<String, OSInfo.WindowsVersion>();
118 public static WindowsVersion getWindowsVersion() throws SecurityException {
126 WindowsVersion result = windowsVersionMap.get(osVersion);
134 result = new WindowsVersion(Integer.parseInt(arr[0]), Integer.parseInt(arr[1]));
149 public static class WindowsVersion implements Comparable<WindowsVersion> {
154 private WindowsVersion(int major, int minor) {
167 public int compareTo(WindowsVersion o) {
178 return obj instanceof WindowsVersion && compareTo((WindowsVersion) obj) == 0;