Module logicng
Package org.logicng

Class LogicNGVersion


  • public final class LogicNGVersion
    extends Object
    A class which exposes the LogicNG library version as specified in the POM. This works only if the compiled library as jar is included in your project.
    Since:
    2.0.0
    Version:
    2.1.0
    • Method Detail

      • version

        public static String version()
        Returns the version string from the POM.
        Returns:
        the version string from the POM
      • major

        public static int major()
        Returns the major version or -1 if the version could not be parsed.
        Returns:
        the major version
      • minor

        public static int minor()
        Returns the minor version or -1 if the version could not be parsed.
        Returns:
        the minor version
      • patch

        public static int patch()
        Returns the patch version or -1 if the version could not be parsed.
        Returns:
        the patch version
      • snapshot

        public static boolean snapshot()
        Returns whether this is a snapshot version or not.
        Returns:
        true if it is a snapshot version, false otherwise