Package pcap.api.internal.util
Class Platforms
java.lang.Object
pcap.api.internal.util.Platforms
@Inclubating public final class Platforms extends java.lang.Object
- Author:
- Ardika Rommy Sanjaya
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatforms.Name -
Method Summary
Modifier and Type Method Description static booleanisDarwin()Returns true if Darwin (MacOs) platform, false otherwise.static booleanisLinux()Returns true if Linux platform, false otherwise.static booleanisWindows()Returns true if Windows platform, false otherwise.static Platforms.Namename()Get platform name.
-
Method Details
-
name
Get platform name.- Returns:
- returns platform name.
-
isWindows
public static boolean isWindows()Returns true if Windows platform, false otherwise.- Returns:
- returns true if windows platform, false otherwise.
-
isLinux
public static boolean isLinux()Returns true if Linux platform, false otherwise.- Returns:
- returns true if linux platform, false otherwise.
-
isDarwin
public static boolean isDarwin()Returns true if Darwin (MacOs) platform, false otherwise.- Returns:
- returns true if Darwin (MacOs) platform, false otherwise.
-