Package 

Interface JREInfoProvider


  • 
    public interface JREInfoProvider
    
                        

    Provides information about used Java runtime

    • Method Summary

      Modifier and Type Method Description
      abstract Unit assertVersion(String message, Function1<Integer, Boolean> condition) Does nothing if condition returns true for current JRE version, throws AssertionError otherwise
      abstract Unit assertVersionAtLeast(Integer minVersion) Does nothing if current JRE version is higher or equal than minVersion, throws AssertionError otherwise
      abstract Unit assertVersionInRange(Integer minVersion, Integer maxVersion) Does nothing if current JRE version is between minVersion and maxVersion, throws AssertionError otherwise
      abstract String getVersion() JRE version, i.e.
      abstract Integer getVersionAsInt() JRE version as integer, i.e.
      • Methods inherited from class org.jetbrains.kotlinx.jupyter.api.JREInfoProvider

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

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

      • assertVersion

         abstract Unit assertVersion(String message, Function1<Integer, Boolean> condition)

        Does nothing if condition returns true for current JRE version, throws AssertionError otherwise

        Parameters:
        message - Exception message
        condition - Condition to check
      • assertVersionAtLeast

         abstract Unit assertVersionAtLeast(Integer minVersion)

        Does nothing if current JRE version is higher or equal than minVersion, throws AssertionError otherwise

        Parameters:
        minVersion - Minimal accepted version
      • assertVersionInRange

         abstract Unit assertVersionInRange(Integer minVersion, Integer maxVersion)

        Does nothing if current JRE version is between minVersion and maxVersion, throws AssertionError otherwise

        Parameters:
        minVersion - Minimal accepted version
        maxVersion - Maximal accepted version