/** * Returns whether the current {@link Version} is greater (newer) or the same as the given one. * * @param version * @return */ public boolean isGreaterThanOrEqualTo(Version version) { return compareTo(version) >= 0; }
/** * Returns whether the current {@link Version} is greater (newer) than the given one. * * @param version * @return */ public boolean isGreaterThan(Version version) { return compareTo(version) > 0; }
/** * Returns whether the current {@link Version} is less (older) than the given one. * * @param version * @return */ public boolean isLessThan(Version version) { return compareTo(version) < 0; }
/** * Returns whether the current {@link Version} is less (older) or equal to the current one. * * @param version * @return */ public boolean isLessThanOrEqualTo(Version version) { return compareTo(version) <= 0; }