From 914f3a5f952e0799b6fb05788d30562464384a13 Mon Sep 17 00:00:00 2001 From: ayalaben Date: Thu, 16 Nov 2017 09:21:41 +0200 Subject: heal all script Issue - ID: SDC-665 Change-Id: Ib035549589ccd9c113235886442b1b2c9a198b86 Signed-off-by: ayalaben --- .../java/org/openecomp/sdc/versioning/dao/types/Version.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java') diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/Version.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/Version.java index 62d7c81cae..82b79c6bda 100644 --- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/Version.java +++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/Version.java @@ -125,6 +125,17 @@ public class Version { return major == version.major && minor == version.minor; } + public int compateTo(Version other){ + if (this.major>other.major) { + return 1; + } else if(this.major