public class CompareVersionUtil extends Object
| Constructor and Description |
|---|
CompareVersionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
atOrAbove(String version,
String atOrAbove) |
static boolean |
isUnder(String version,
String under)
Method that calculate if [Version 1] is under [Version 2]
|
public static boolean isUnder(String version, String under)
1.0.1 - 1.0.2 : YES 1.0.1 - 2.0.1 : YES 1.3.2 - 1.2.5 : NO 1.2.3 - 1.2.3 : NO=== Reimplementation of isAtOrAbove (but reverse) https://github.com/bekk/retire.js/blob/master/node/lib/retire.js#L85
version - Version to compareunder - Version serving as referenceCopyright © 2018. All rights reserved.