Package org.zkoss.zats.mimic.impl
Class Util
java.lang.Object
org.zkoss.zats.mimic.impl.Util
Utilities for implementation.
- Author:
- pao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckVersion(String startVersion, String endVersion) check the given version range is match current ZK version or not.static voidclose resource without any exception.static Stringstatic BigIntegerstatic booleanstatic booleanisZKVersion(int primaryVer) static BigIntegerparseVersion(String version) parse ZK version to uniform number for compare.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getZKVersion
-
isZKVersion
public static boolean isZKVersion(int primaryVer) -
hasClass
-
checkVersion
check the given version range is match current ZK version or not. it accepts wildcard "*". e.g * or 5.0.* or 6.*.* -
close
close resource without any exception.- Parameters:
r- resource. If null, do nothing.
-
parseVersion
parse ZK version to uniform number for compare. the method design for normal version string, but it will still parse as long as possible.- Parameters:
version- ZK version string.- Returns:
- uniform number or null if failed to parse.
-
generateRandomString
-