Top Description Fields Constructors Methods
one.jpro.platform.utils

public Class PlatformUtils

extends Object
Class Inheritance

Platform utilities.
Author
Besmir Beqiri

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final String
private static final boolean
private static final boolean
private static final String
private static final boolean
private static final boolean
private static final String
private static final String
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the operating system architecture is arm64, false otherwise.
isAarch64
()

Returns true if the operating system architecture is arm64 (aarch64).

public static boolean

Returns:

true if the platform is Android, false otherwise.
isAndroid
()

Returns true if the platform is Android.

public static boolean

Returns:

true if the current system is a desktop platform, false otherwise.
isDesktop
()

Checks if the current system is a desktop platform.

public static boolean

Returns:

true if the platform is embedded, false otherwise.
isEmbedded
()

Returns true if the platform is embedded.

public static boolean

Returns:

true if the operating system is iOS, false otherwise.
isIOS
()

Returns true if the operating system is iOS.

public static boolean

Returns:

true if operating system is Linux, false otherwise.
isLinux
()

Returns true if the operating system is a form of Linux.

public static boolean

Returns:

true if operating system is macOS, false otherwise.
isMac
()

Returns true if the operating system is a form of macOS.

public static boolean

Returns:

true if operating system is Windows, false otherwise.
isWindows
()

Returns true if the operating system is a form of Windows.

private static boolean

Returns:

false if the version number cannot be parsed as a float, otherwise the comparison against value.
versionNumberGreaterThanOrEqualTo
(float
The value to test against.
value
)

Utility method used to determine whether the version number as reported by system properties is greater than or equal to a given value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANDROIDback to summary
private static final boolean ANDROID
archback to summary
private static final String arch
embeddedback to summary
private static final boolean embedded
IOSback to summary
private static final boolean IOS
javafxPlatformback to summary
private static final String javafxPlatform
LINUXback to summary
private static final boolean LINUX
MACback to summary
private static final boolean MAC
osback to summary
private static final String os
versionback to summary
private static final String version
WINDOWSback to summary
private static final boolean WINDOWS

Constructor Detail

PlatformUtilsback to summary
public PlatformUtils()

Method Detail

isAarch64back to summary
public static boolean isAarch64()

Returns true if the operating system architecture is arm64 (aarch64).

Returns:boolean

true if the operating system architecture is arm64, false otherwise.

isAndroidback to summary
public static boolean isAndroid()

Returns true if the platform is Android.

Returns:boolean

true if the platform is Android, false otherwise.

isDesktopback to summary
public static boolean isDesktop()

Checks if the current system is a desktop platform.

Returns:boolean

true if the current system is a desktop platform, false otherwise.

isEmbeddedback to summary
public static boolean isEmbedded()

Returns true if the platform is embedded.

Returns:boolean

true if the platform is embedded, false otherwise.

isIOSback to summary
public static boolean isIOS()

Returns true if the operating system is iOS.

Returns:boolean

true if the operating system is iOS, false otherwise.

isLinuxback to summary
public static boolean isLinux()

Returns true if the operating system is a form of Linux.

Returns:boolean

true if operating system is Linux, false otherwise.

isMacback to summary
public static boolean isMac()

Returns true if the operating system is a form of macOS.

Returns:boolean

true if operating system is macOS, false otherwise.

isWindowsback to summary
public static boolean isWindows()

Returns true if the operating system is a form of Windows.

Returns:boolean

true if operating system is Windows, false otherwise.

versionNumberGreaterThanOrEqualToback to summary
private static boolean versionNumberGreaterThanOrEqualTo(float value)

Utility method used to determine whether the version number as reported by system properties is greater than or equal to a given value.

Parameters
value:float

The value to test against.

Returns:boolean

false if the version number cannot be parsed as a float, otherwise the comparison against value.