Package org.pkl.core

Class Release


  • public class Release
    extends java.lang.Object
    Information about the Pkl release that the current program runs on. This class is the Java equivalent of standard library module pkl.release.
    • Method Detail

      • current

        public static Release current()
        The Pkl release that the current program runs on.
      • version

        public Version version()
        The version of this release.
      • os

        public java.lang.String os()
        The operating system (name and version) this release is running on.
      • flavor

        public java.lang.String flavor()
        The flavor of this release (native, or Java and JVM version).
      • versionInfo

        public java.lang.String versionInfo()
        The output of pkl --version for this release.
      • commitId

        public java.lang.String commitId()
        The Git commit ID of this release.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object