public class StringHelper
extends java.lang.Object
Constructor and Description |
---|
StringHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
comparableVersionValue(java.lang.String version)
Calculates an ordered value from the given version string that can be used to compare version numbers
|
static boolean |
isNullOrEmpty(java.lang.String string)
Determine if a string is null or empty
|
public static boolean isNullOrEmpty(java.lang.String string)
string
- the string to testpublic static int comparableVersionValue(java.lang.String version)
version
- the string containing a version number with at most three numbers (i.e n.n.n, n.n or n)