Class OakVersion


  • public final class OakVersion
    extends java.lang.Object
    Provides version information about Oak.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.String getVersion​(java.lang.String moduleName, java.lang.Class clazz)
      Returns the version of an Oak module.
      • Methods inherited from class java.lang.Object

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

      • getVersion

        @NotNull
        public static @NotNull java.lang.String getVersion​(java.lang.String moduleName,
                                                           java.lang.Class clazz)
        Returns the version of an Oak module.
        Parameters:
        moduleName - the name of the module
        clazz - a class of the module
        Returns:
        the version (or "SNAPSHOT" when unknown)