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 class  Platforms.Name  
  • Method Summary

    Modifier and Type Method Description
    static boolean isDarwin()
    Returns true if Darwin (MacOs) platform, false otherwise.
    static boolean isLinux()
    Returns true if Linux platform, false otherwise.
    static boolean isWindows()
    Returns true if Windows platform, false otherwise.
    static Platforms.Name name()
    Get platform name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • name

      public static Platforms.Name 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.