MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / isGreaterThan

Method isGreaterThan

java/src/org/openqa/selenium/docker/Version.java:69–83  ·  view source on GitHub ↗
(Version other)

Source from the content-addressed store, hash-verified

67 }
68
69 public boolean isGreaterThan(Version other) {
70 int max = Math.max(segments.length, other.segments.length);
71
72 for (int i = 0; i < max; i++) {
73 int cmp = compare(segments, other.segments, i);
74 if (cmp < 0) {
75 return false;
76 }
77 if (cmp > 0) {
78 return true;
79 }
80 }
81
82 return !equalTo(other);
83 }
84
85 public String toString() {
86 return versionString;

Calls 2

compareMethod · 0.95
equalToMethod · 0.95