Package 

Class PlatformDependent


  • 
    public final class PlatformDependent
    
                        

    Allow platform dependent logic such as checks for Android. Modeled after Netty with some code copy/pasted from: https://github.com/netty/netty/blob/master/common/src/main/java/io/netty/util/internal/PlatformDependent.java

    • Method Summary

      Modifier and Type Method Description
      static boolean isAndroid() Returns {@code true} if and only if the current platform is Android.
      static int getAndroidApiVersion() Returns version of Android API.
      • Methods inherited from class java.lang.Object

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

      • isAndroid

         static boolean isAndroid()

        Returns {@code true} if and only if the current platform is Android.