public class VersionComparatorUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VersionComparatorUtil.VersionTokenType |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<java.lang.String> |
COMPARATOR |
static Function<java.lang.String,java.lang.Integer> |
DEFAULT_TOKEN_PRIORITY_PROVIDER |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.String ver1,
java.lang.String ver2)
Compare two version strings.
|
static int |
compare(java.lang.String ver1,
java.lang.String ver2,
Function<? super java.lang.String,java.lang.Integer> tokenPriorityProvider) |
static int |
comparePriorities(java.lang.String ver1,
java.lang.String ver2,
Function<? super java.lang.String,java.lang.Integer> tokenPriorityProvider) |
static java.lang.String |
max(java.lang.String v1,
java.lang.String v2) |
static java.lang.String |
min(java.lang.String v1,
java.lang.String v2) |
public static final java.util.Comparator<java.lang.String> COMPARATOR
public static final Function<java.lang.String,java.lang.Integer> DEFAULT_TOKEN_PRIORITY_PROVIDER
public static java.lang.String max(java.lang.String v1, java.lang.String v2)
public static java.lang.String min(java.lang.String v1, java.lang.String v2)
public static int compare(java.lang.String ver1, java.lang.String ver2)
public static int compare(java.lang.String ver1, java.lang.String ver2, Function<? super java.lang.String,java.lang.Integer> tokenPriorityProvider)
public static int comparePriorities(java.lang.String ver1, java.lang.String ver2, Function<? super java.lang.String,java.lang.Integer> tokenPriorityProvider)