public class BasicVersionV extends Object implements VersionVI, Serializable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
VERSION_COMPARE_NEXT, VERSION_COMPARE_NEXT_FOREVER, VERSION_COMPARE_ONLY, VERSION_COMPARE_UNTIL, VERSION_COMPARE_UNTIL_EQUAL| Constructor and Description |
|---|
BasicVersionV() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValidVersion(String lversion,
String ontimizeVersion,
int type)
Comprobacion
type:
VERSION_COMPARE_UNTIL true: lversion > ontimizeVersion
VERSION_COMPARE_UNTIL_EQUAL true: lversion >= ontimizeVersion
VERSION_COMPARE_ONLY true: lversion = ontimizeVersion
VERSION_COMPARE_NEXT true: lversion <= ontimizeVersion && (lversion y
ontimizeVersion mismo rango estables)
VERSION_COMPARE_NEXT_FOREVER true: lversion <= ontimizeVersion
|
boolean |
isPreviousVersion(String v1,
String v2) |
boolean |
isValidVersion(String version) |
public boolean isValidVersion(String version) throws Exception
isValidVersion in interface VersionVIExceptionpublic boolean isPreviousVersion(String v1, String v2) throws Exception
isPreviousVersion in interface VersionVIExceptionpublic boolean checkValidVersion(String lversion, String ontimizeVersion, int type) throws Exception
checkValidVersion in interface VersionVIlversion - type - ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.