Class VersionUtils

java.lang.Object
org.panda_lang.pandomium.util.VersionUtils

public class VersionUtils
extends Object
Author:
Osiris-Team
  • Constructor Details

  • Method Details

    • compare

      public boolean compare​(@Nullable String currentVersion, @Nullable String latestVersion)
      Compares the current version with the latest version and returns true if the latest version is bigger than the current version.
      Note that the provided version strings may contain characters.
      These get removed before comparing the strings. Example:
      app-V1.0.45bT -> 1.0.45