mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
13.59.2016 48deac6f808690e620a5444398c938dc8ef2a970
opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java
@@ -278,4 +278,28 @@
    }
    return Utils.joinAsString(".", major, minor, point);
  }
  /**
   * Returns {@code true} if the version is newer than the provided version.
   *
   * @param version
   *          The version to be compared
   * @return {@code true} if the version is newer than the provided version.
   */
  public boolean isNewerThan(final BuildVersion version)
  {
    return this.compareTo(version) >= 0;
  }
  /**
   * Returns {@code true} if the version is older than the provided version.
   *
   * @param version
   *          The version to be compared
   * @return {@code true} if the version is older than the provided version.
   */
  public boolean isOlderThan(final BuildVersion version)
  {
    return this.compareTo(version) <= 0;
  }
}